title: Finding the size of int [] array
body: <p>In the following function, how can we find the length of the array</p>
  
  <pre><code>int fnLenghthOfArray(int arry[]){
      return sizeof(arry)/sizeof(int); // This always returns 1
  }
  </code></pre>
  
  <p>Here this function always returns 1.
  Where as, <code>sizeof(arry)/sizeof(int)</code> gives the actual length of the array, in the function where it is declared.</p>
  
  <p>If we use vector or template like </p>
  
  <pre><code>template&lt;typename T,int N&gt; 
  
  int fnLenghthOfArray(T (&amp;arry)[N]){
  
  }
  </code></pre>
  
  <p>we can get the size. But here I am not allowed to change the function prototype.</p>
  
  <p>Please help me to find this.</p>