注意:此页面搜索的是所有试题
题目内容
(长沙理工大学-面对对象程序设计C++)
下列程序的输出结果是()
#include
void main()
{int n[][3]={10,20,30,40,50,60};
int (*p)[3];
p=n;
cout<<p[0][0]<<","<<*(p[0]+1)<<","<<(*p)[2]<<endl;}
#include
void main()
{int n[][3]={10,20,30,40,50,60};
int (*p)[3];
p=n;
cout<<p[0][0]<<","<<*(p[0]+1)<<","<<(*p)[2]<<endl;}
参考答案