title: Passing matrix as a parameter in function
body: <p>I have been trying to write a function which gives the index of rows and columns whoses element is 0. I tried using a function </p>
  
  <pre><code>void make_zero(int matrix[][],int row,int col)
  {
      int row, col;
      int i,j;  
  
      for(i=0;i&lt;row;i++)
      {
          for(j=0;j&lt;col;j++)
          {
              if(matrix[i][j]==0){
                  printf("%d %d\n", i, j);
          }
  
      }
  }
  </code></pre>
  
  <p>But at the time of compiling it gives an error"error: array type has incomplete element type".
  I also tried declaring the matrix globally and giving it a pointer. But it doesn't work for me.
  Help me out with this how can we pass matrix to a function in C.</p>