Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
怎么申报20次
int p[] = { 1,2,3,4,5}; int p[] = { 6,7,8,9,10}; . . .
假设我有一个 20x20 的矩阵。每一行都是上面的一个指针
您可以使用 20X20 二维数组来执行此操作。
int p[][]={{1,2,3,4,5}, {6,7,8,9,10}, {11,12,13,14,15}, ..... ..... }
编辑: 您可以使用以下方法参考第五行:
for(int i=0; i<5; i++) { printf(" %d",p[4][i]); }