64,639
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
using namespace std;
int main(){
int ia[3][4]={
{1,2,3,2},
{2,3,4,5},
{3,4,2,3}
};
int (*p)[4];
for(p=ia;p!=ia+3;++p)
for(int * q=*p;q!=*p+4;++q)
cout << *q ;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int i = 0, j = 1, k = 2, m = 3;
int* p[4] = {&i, &j, &k, &m};
cout << *p[0] << " "
<< *p[1] << " "
<< *p[2] << " "
<< *p[3] << endl;
return 0;
}
#include<iostream>
using namespace std;
typedef int b[2];
int main()
{
b a[2] = {0, 1, 2, 3};
cout << **a;
return 0;
}