题目内容:
有以下程序: #include<stdio.h>
void fun(int*s)
{ static int i=0;
do{s[J]=s[J]+s[j+I];}while(++j<2);
}
main( )
{ int k.a[l0]={1,2,3,4,5};
for(k=1;k<3;k++)fun(a);
for(k=0;k<5;k++)pfintf("%d",a[k]);
printf("\n");
}
程序运行后的输出结果是( )。 A.12345
B.23445
C.34756
D.35745
参考答案:
答案解析: