填空题
以下程序运行后的输出结果是
【6】
。
#include <stdio.h>
int a=5;
fun (int b)
static int a=10;
a+ =b++;
printf("%d",a);
main()
int c=20;
fun(c);
a+ =c++;
printf("%d\n",a);
【参考答案】
30 25
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是 【8】 。 #include <stdio.h> main() int a=1,b=3,c=5; if (c=a+b) printf( yes n ); else printf( no n );
点击查看答案&解析
单项选择题
以下程序的功能是计算:。 #include <stdio.h> main() int n; float s; s=1.0; for(n=10;n>1;n--) s=s+1 n; printf( %6.4f n ,s); 程序运行后输出结果错误,导致错误结果的程序行是( )。
点击查看答案&解析
相关试题
以下程序运行后的输出结果是 【18】 。...
以下程序运行后的输出结果是 【19】 。...
以下程序运行后的输出结果是 【20】 。...
以下程序运行后的输出结果是 【12】 。...
以下程序的功能是调用函数fun计算:m=1-...