title: Count the number of elements in an array in C
body: <p>How can I obtain the number of elements present in an integer array in C after the array is passed to a function?  The following code doesn't work.</p>
  
  <pre><code>size=sizeof(array)/sizeof(array[0]);
  </code></pre>