以下程序的输出结果是 int a[3][3]={1 2 3 4 5 6 7 8 9 } *p; int main(void) { p=(int*)malloc(
已帮助 人
以下程序的输出结果是 int a[3][3]={1,2,3,4,5,6,7,8,9,},*p; int main(void) { p=(int*)malloc(sizeof(int)); f(p,a); printf("%d n",*p); return 0; } f(int *s, int p[][3]) { *s=p[1][1]; }
A.1
B.4
C.7
D.5
![以下程序的输出结果是 int a[3][3]={1 2 3 4 5 6 7 8 9 } *p; int main(void) { p=(int*)malloc(](/uploads/allimg/6-2744263Q9.jpg)
回答
共1条回复-
B函数调用时,prt函数的作用是为使m数组中的数自增1,因此数组下标从0开始,每个元素都自加1。
