#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int a[3][2]={ {1,2}, {3,4}, {5,6} }; int (*p)[2]; p=a; int *q; for(p=a;p<a+3;p++){ for(q=*p;q<*p+2;q++){ printf("%d ",*q); } } return 0; }
标签:遍历,int,C语言,数组,include,指针 From: https://www.cnblogs.com/san357/p/16882892.html