title: not passing rows count of 2d arrays to a function in c
body: <p>can i do some calculation using the sizeof operator in c to get
  the rows count inside a function who receives as a parameter only
  a two dimensional array without any information about rows or columns count in this passed array?</p>
  
  <pre><code>void main(void){
      int A[5][6];
      int columnsC = sizeof(A[0]) / sizeof(int);
      int rowsC = ( sizeof(A)/sizeof(int) ) / columnsC;
      printf("rows: %d\ncolumns: %d\n", rowsC, columnsC);
  
      getch();
  }
  </code></pre>
  
  <p>the previous code worked for me, but i can't find a helpful resource to know how to apply this on a function of the following header:</p>
  
  <pre><code>void fun(int arr[][10])
  </code></pre>
  
  <p>i"m studying a course on Programming Languages Principles, and some times think of things differently and look for learning resources, and this helps a lot, but not this time apparently.</p>
  
  <p>i admire any help.</p>