title: How to pass a 2D array by pointer in C?
body: <p>I am learning C and am having trouble passing the pointer of a 2D array to another function that then prints the 2D array. Any help would be appreciated. </p>
  
  <pre><code>int main( void ){
      char array[50][50];
      int SIZE;
  
      ...call function to fill array... this part works.
  
      printarray( array, SIZE );
  }
  
  void printarray( char **array, int SIZE ){
      int i;
      int j;
  
      for( j = 0; j &lt; SIZE; j++ ){
          for( i = 0; i &lt; SIZE; i ++){
              printf( "%c ", array[j][i] );
          }
          printf( "\n" );
      }
  }
  </code></pre>