title: Difference between array and pointer as a function's argument in c
body: <p>When defining a function like this:</p>
  
  <pre><code>void  myFunction(arguments){
     // some instructions
  }
  </code></pre>
  
  <p>What is the deference between using <code>type name[]</code> and <code>type *name</code> as the function's argument. </p>
  
  <p>When using <code>type name[]</code> and calling the function does it make a copy to the <code>name</code> array or just point to the passed array.</p>
  
  <p>Is the <code>name</code> array's subscript needs to be set. If not what's the difference.</p>