楼主是想说两个二维数组,还是一个三维数组?
三维数组如下教材所示:
In general, to declare a pointer corresponding to an N-dimensional array, you must supply
values for all but the leftmost set of brackets:
int sum4d(int ar[][12][20][30], int rows);//数组版本
That's because the first set of brackets indicates a pointer, whereas the rest of the brackets
describe the type of data object being pointed to, as the following equivalent prototype
illustrates:
int sum4d(int (*ar)[12][20][30], int rows); // ar a pointer //指针版本
Here, ar points to a 12x20x30 array of ints.