#include #include void f(int arg[][3]); void g(int (*p)[3]); main() { int a[][3] = { {0, 1, 2}, {3, 4, 5} }; f(a); printf("\n"); g(a); } void f(int arg[][3]) { int row; int col; for (row = 0; row < 2; ++row) { printf("row %2d: ", row); for (col = 0; col < 3; ++col) { printf("%2d", arg[row][col]); if (col < 3 - 1) { printf(" "); } } printf("\n"); } } void g(int (*p)[3]) { int row; int col; for (row = 0; row < 2; ++row) { printf("row %d: ", row); for (col = 0; col < 3; ++col) { printf("%d", p[row][col]); if (col < 3 - 1) { printf(" "); } } printf("\n"); } }