title: Passing two-dimensional array via pointer
body: <p>How do I pass the m matrix to foo()? if I am not allowed to change the code or the prototype of foo()?</p>
  
  <pre><code>void foo(float **pm)
  {
      int i,j;
      for (i = 0; i &lt; 4; i++)
          for (j = 0; j &lt; 4; j++)
              printf("%f\n", pm[i][j]);
  
  }
  
  int main ()
  {
      float m[4][4];
  
      int i,j;
      for (i = 0; i &lt; 4; i++)
          for (j = 0; j &lt; 4; j++)
              m[i][j] = i+j;
  
      foo(???m???);
  }
  </code></pre>