三、数组指针和二维数组
int main()
{
//数组指针
int(*p)[4];
int a[3][4] = {1,2,3,4,5,6,7,8,9,10,11,12};
p = a;
printf("sizeof(p)=%d\n",sizeof(p) );
printf("sizeof(a)=%d\n", sizeof(a));
//*(p+1) 相当于 p[1]
printf("*(p + 1)[1] = %d\n", *(p+1)[1]); //相当于*(p+1+1)和p[2]
//printf("&a + 1 = %x",&a + 1); &a表示整个数组
//取出数字6
printf("a[1][1] = %d\n", a[1][1]);
printf("p[1][1] = %d\n", p[1][1]);
printf("*(*(p+1)+1) = %d\n", *(*(p+1)+1));
printf("*(p[1]+1) = %d\n", *(p[1]+1));
printf("*(&a[1][1]) = %d\n", *(&(a[1][1])));
return 0;
}