题目内容:
有以下程序 structS{intn;inta[20];};voidf(int*a,intn){inti;for(i=0;ia[i]+=i;}main(){inti;structSs={10,{2,3,1,6,8,7,5,4,10,9}};f(s.a,s.n);for(i=0;iprintf(“%d”,s.a[i]);}程序运行后的输出结果是( )。 A.2,4,3,9,12,12,11,11,18,9,
B.3,4,2,7,9,8,6,5,11,10,
C.2,3,1,6,8,7,5,4,10,9,
D.1,2,3,6,8,7,5,4,10,9,
参考答案:
答案解析: