有以下程序: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,
21 查阅
有以下程序: 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,
参考答案: