单项选择题
以下程序运行后的输出结果是 #include<stdio.h> int fun(){ static int x=1; x+=1; return x; } main(){ int i,s=1; for(i=1; i<=5;i++) s+=fun(); printf("%d\n", s); }
A.11
B.21
C.6
D.120
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序运行后的输出结果是 #include<stdio.h> #include<string.h> main(){ char x[]= STRING ; x[0]=0; x[1]=' 0'; x[2]='0'; printf( %d%d n , sizeof(x),strlen(x)); }
A.6 1
B.7 0
C.6 3
D.7 1
点击查看答案&解析
相关试题
以下程序打开新文件f.txt,并调用字符输出...
以下程序的功能是:借助指针变量找出数组元...
以下fun函数的功能是:找出具有N个元素的一...
以下程序运行后的输出结果是______。...
以下程序运行后的输出结果是______。...