为什么下面的代码以它的方式工作?在sizeof()中使用时,* p,* p1,* p2选择了多少个元素?
#include<stdio.h>
//consider integer to be 4 bytes size
#define R 10
#define C 20
int main()
{
int (*p)[R][C];
int *p1[R][C];
int p2[R][C];
printf("%d\n",sizeof(*p)); //output is 800
printf("%d\n",sizeof(*p1)); //output is 160
printf("%d",sizeof(*p2)); //output is 80
getchar();
return 0;
}