C/C++获取二维数组的大小/长度/元素个数
int p[5][6]; int lenTotal = sizeof(p) / sizeof(int); //30 int lenLow = sizeof(p[0]) / sizeof(int); //6 int lenHigh = lenTotal / lenLow; //5
C/C++获取二维数组的大小/长度/元素个数
int p[5][6]; int lenTotal = sizeof(p) / sizeof(int); //30 int lenLow = sizeof(p[0]) / sizeof(int); //6 int lenHigh = lenTotal / lenLow; //5