int main(){int a[5][3]={{1,2,3},{4,5,6},{7,8,9},{11,22,33},{44,55,66}};int (*p)[3];int i,j,s;for(i=0; i 解析看不懂?免费查看同类题视频解析查看解答 相似问题 请问:两个指针变量可以相减,如两个指针变量指向同一个数组的元素, 特别推荐 热点考点 2022年高考...
include <stdio.h> int main(){ int a[5][3]={{1,2,3},{4,5,6},{7,8,9},{11,22,33},{44,55,66}};int (*p)[3];int i,j,s;for(i=0; i<5; i++){ p=&a[i]; //指向第i行 s=0;for(j=0; j<3; j++)s+=*(*p+j);printf("sum of line %d = %d\n"...
int a[5][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {11, 22, 33}, {44, 55, 66}};int (*p)[3];int i, j, s;for (i = 0; i < 5; i++) { p = &a[i]; // 指向第i行 s = 0;for (j = 0; j < 3; j++) { s += *(*p + j);} printf...