title: C Program: newbie trying to pass 2D string array into a function
body: <p>Programming in C ( with -std=C89), and running into errors trying to pass a character string array into a function. </p>
  
  <p>In <code>main()</code>, I've declared the array as follows:</p>
  
  <pre><code>#define ROWS 501
  #define COLS 101
  void my_function( char **);
  ...
  char my_array[ROWS][COLS];
  ...
  my_function(my_array);
  </code></pre>
  
  <p>In <code>my_function</code>, I've declared the array as:</p>
  
  <pre><code>void my_function( char **my_array )
  {
  ...
  }
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <p><code>warning: passing argument 1 of 'my_function' from incompatible pointer type,
  note: expected 'char **' but argument is of type 'char (*)[101]</code></p>