relation between arrays and "sizeof" keyword
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1328223/sizeof-array-passed-as-parameter">Sizeof array passed as parameter</a>  </p>
</blockquote>



<p>I was under the impression that passing a pointer to the first element in an array was the same as passing the array itself. How come <code>sizeof</code> works with arrays but not with the corresponding pointer? I thought they was the same thing.</p>

<p>If I declare an array and use its name in the function, it works, but if I declare the array somewhere else, pass it in as a pointer parameter and then use that, it doesn't. what am I missing?</p>
