有以下程序
#include
void f(int b[])
{ int i;
for (i=2; i<6; i++) b[i] *= 2;
}
main()
{ int a[10]={1,2,3,4,5,6,7,8,9,10}, i;
f(a);
for (i=0; i<10; i++) printf("%d,", a[i]);
}
程序运行后的输出结果是
- A.1,2,3,4,5,6,7,8,9,10,
- B.1,2,6,8,10,12,7,8,9,10,
- C.1,2,3,4,10,12,14,16,9,10,
- D.1,2,6,8,10,12,14,16,9,10,
热度🔥867
解析:打开微信小程序查看本题解析