If I dont know the size of both the dimensions of array and want to print a matrix using the following code
void printAnyMatrix(int (*A)[], int size_A, int size_B)
{
for (int i = 0; i<=size_A; i++)
{
for (int j = 0; j<=size_B; j++)
printf("%d ", A[i][j]);
printf("\n");
}
printf("\n");
}
Compiler gives
错误 无法将'to': 'void printAnyMatrix(int [])'的参数1从'int (*)[(((unsigned int)((int)size_B)) + 1)]'转换为'int ()[]'