回复 楼主 shutingjia
#include<stdio.h>
int main()
{
int a[2][5]={1,2,3,4,5,6,7,8,9,10};
int b[4][5]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
int i,*p,*q;
p=&a;
q=&b;
for(i=0;i<10;i++){
printf("%d ",*(p+i));
}
printf("\n");
for(i=0;i<20;i++){
printf("%d ",*(q+i));
}
printf("\n");
return 0;
}