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
void make_zero(int matrix[][],int row,int col)
{
int row, col;
int i,j;
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{
if(matrix[i][j]==0){
printf("%d %d\n", i, j);
}
}
}
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.