关于指向多维数组的指针和数组指针和指针数组的一些区别
程序代码:
#include<stdio.h> void main() { int a[2][3]={1,2,3,4,5,6},*p; p=*a; printf("%d %d \n",*p,*(p+4)); } /*#include<stdio.h> void main() { int a[2][3]={1,2,3,4,5,6}; int (*p)[3]=*a; printf("%d\n",*(*(p+1)+1)); }*/ /*#include<stdio.h> void main() { int a[2][3]={1,2,3,4,5,6}; int *p[2]={a[0],a[1]}; printf("%d\n",*(*(p+1)+1)); } */