#include <stdio.h> //一维数组 二维数组的指针 main() { int a[2][3]={{1,2,3},{4,5,6}}; int b[]={10,20,30,40,50,60}; int *p,*p1,i; p1=b;//一维数组指针 p=a[0];//二维数组指针 //p=&a[0][0]; for(i=0;i<=5;i++) printf("%d ",*(p+i)); printf("\n"); for(i=0;i<=5;i++) printf("%d ",*(p1+i)); getchar(); }
标签:数组,int,C语言,二维,一维,指针 From: https://www.cnblogs.com/xkdn/p/16708232.html