title: Pass matrix as argument
body: <p>I want to pass two matrices as argument. These matrices have different size and i don't understand how i have to do this work:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  
  void f(int m[3][], int n);
  
  int main()
  {
    int A[3][3]={{1,2,3},{4,5, 6},{7,8,9}};
    int B[3][2]={{1,2},{3, 4}, {5, 6}};
  
    f(A, 3);
    f(B, 2);
  
    return 0;
  }
  
   void f(int m[3][], int n)
   {
      int i,j;
      for(i=0;i&lt;3;i++)
      {
        for(j=0;j&lt;n;j++)
         printf("%5d", m[i][j]);
      }
      return;
   }
  </code></pre>
  
  <p>How can I do this?</p>