知识点稍后整理,其
有一道程序题,问以下程序的输出
1 int main() { 2 int n[][3] = { 10,20,30,40,50,60 }; 3 int(*p)[3]; 4 p = n; 5 cout << p[0][0] << " " << *(p[0] + 1) << " " << (*p)[2] << endl; 6 system("pause"); 7 return 0; 8 }
答案:10,20,30
原文地址:https://www.cnblogs.com/dapeng-bupt/p/8930888.html
时间: 2024-10-17 09:51:42