www.3112.net > 设有以下定义: int A[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};i...

设有以下定义: int A[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};i...

a[1][2]是第二行第三个所以a[1][2]=6 你的数组是这样的1 2 34 5 67 8 9 打字不易,如满意,望采纳.

我来回答程序:#include <stdio.h>#include <stdlib.h>int main(void){ int a[3][4]={{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}}; int *p = &a[0][0]; for (int i = 0; i != 12; ++i) printf("%d ", *(p + i)); system("pause>nul"); return 0;}

相关搜索:

网站地图

All rights reserved Powered by www.3112.net

copyright ©right 2010-2021。
www.3112.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com