单选题 下面程序的输出结果是 ____
#include <stdio.h>
void fun(int *s)
{ static int j=0;
do
{s[j]+=s[j+1];
}while(++j<2);
}
void main()
{ int k,a[10]={1,2,3,4,5);
for(k=1;k<3;k++)
fun(a);
for(k=0; k<5;k++)
printf("%d",a[k]);
}
【正确答案】 C
【答案解析】