柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
有以下程序 #include
int fun() { static int x=1; x*=2; return x; } main() { int i,s=1; for(i=1;i<=2;i++) s=fun(); printf("%d\n",s); } 程序运行后的输出结果是
A.0
B.1
C.4
D.8
热度🔥1,207
arrow_forward
关注微信公众号【柠檬试题库】
计算机二级考试在线刷题备考
参考答案:C
解析:打开微信小程序查看本题解析
点击打开小程序查看解析
content_copy
扫码获取考试题库
2022年计算机等级考试题库
推荐
有以下程序: #include void fun( int a, int b ) { int t; t=a; a=b; b=t; } main() { int c[10]={1,2,3,4,5,6,7,8,9,0}, i; for (i=0; i<10; i+=2) fun(c[i], c[i+1]); for (i=0;i<10; i++) printf("%d,", c[i]); printf("\n"); } 程序的运行结果是( )。
数据库概念设计是面向企业或组织中的数据需求的。下列有关概念模型设计的说法中,错误的是()
下列叙述中错误的是( )。
标签
二级C语言
调用
fun
函数
int