title: Why use an asterisk "[*]" instead of an integer for a VLA array parameter of a function?
body: <p>When using <strong>variable-Length Array</strong> as  parameter in function  </p>
  
  <pre><code>int sum(int n, int a[n]);
  </code></pre>
  
  <p>it is easy to understand first parameter(<code>n</code>) specifies the length of the second parameter(<code>a</code>). But encountered with another prototype used for <strong>VLAs</strong> as parameter  </p>
  
  <pre><code>int sum(int n, int a[*]);
  </code></pre>
  
  <p>is really difficult to understand why <code>*</code> is used instead of <code>n</code> inside <code>[]</code>?</p>