#include<iostream>
using namespace std;
int main()
{
int a[3][4] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
int*p, (*pt)[4], i, j;
for (p = a[0]; p < a[0] + 12; p++)
cout << *p << endl;
pt = a;
cout << *(*(pt + 1) + 4) << endl;
system("pause");
return 0;
}
二维数组取值
最新推荐文章于 2022-09-25 23:17:42 发布