title: Size of 2 D array
body: <pre><code>int array[][2] = {
  {1,0}, 
  {2,2},
  {3,4},
  {4,17}
  };
  
  int main()
  {
      /* calculate array size */
  
      printf(" =&gt; number of positions to capture : %d", (int)(sizeof(array)/sizeof(array[0])));
      func(array);
      return 0;
  }
  void func(int actu[][2])
  {
      /* calculate array size */
      printf(" =&gt; number of positions to capture : %d", (int)(sizeof(actu)/sizeof(actu[0])));
   }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code> =&gt; number of positions to capture : 4 -- inside main
   =&gt; number of positions to capture : 0 -- inside func -- I believe I should get 4 here too
  </code></pre>
  
  <p>Size of a same arrray in calling and called function are giving different values. Please, help me to find the issue.</p>