填空题
以下程序的输出结果是 【11】 。
#include <stdio.h>
int fun(int x)
{ static int t=0;
return(t+=x);
}
main()
int s,i;
for(i=1 ;i<=5;i++) s=fun(i);
printf("%d\n",s);
【参考答案】
O
热门
试题
填空题
以下程序的输出结果是 【9】 。#include <stdio.h>main(){ int j,a[]={1,3,5,7,9,11,13,15},*P=a+5;for(j=3; j;j-){ switch(i){ case 1:case 2: printf( %d ,*p++); break;case 3: printf( %d ,* (-p));}}}