【单选题】【消耗次数:1】
下列程序执行后的输出结果是() void func1(a) { switch(a) { case 1:printf(good); case 2:printf(nice); default:printf(end); } } main( ) { int i=2; func1(i); printf(\n); }
nice
end
good
niceend
参考答案:
复制
纠错
相关题目
【单选题】 以下程序段的运行结果是()。 int s=15; switch(s/4) {default: printf(Over ) ; case 1: printf(One ) ; break; case 2: printf(Two ) ; }
①  Two
②  Over Two
③  Over One
④  One
【单选题】 有以下程序,程序运行以后的输出结果是() #include stdio.h main( ) { int a[ ]={2,3,5,4},i; for(i=0;i switch(i%2) { case 0:switch(a[i]%2) {case 0:a[i]++;break; case 1:a[i]--; }break; case 1:a[i]=0; } for(i=0;i printf(\n); }
①  3 3 4 4
②  2 0 5 0
③  3 0 4 0
④  0 3 0 4
【单选题】 以下程序段的运行结果是()。ints=15;switch(s/4){default:printf("Over");case1:printf("One");break;case2:printf("Two");}
①  Two
②  OverTwo
③  OverOne
④  One
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); } case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=1,b=1
②  a=2 ,b=1
③  a=2,b=2
④  a=3,b=3
【单选题】 下面程序的输出结果是()。 #include int num=10; func( ) {int num=4; return ++num; } void main( ) { printf(%d\n, func( ) ) ; }
①  4
②  5
③  10
④  11
【单选题】 以下程序的运行结果是()。voidmain(){intn=9;switch(n--){default:printf("%d",n++);case8:case7:printf("%d",n);break;case6:printf("%d",n++);case5:printf("%d",n);}}
①  8
②  7
③  89
④  87
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*} printf(\n}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=2,b=1
②  a=1,b=2
③  a=0,b=1
④  a=1,b=0
随机题目
【判断题】 解决我国社会的主要矛盾是习近平新时代中国特色社会主义思想形成的现实根据。
①  正确
②  错误
【判断题】 在新的世纪,继续推动现代化建设,完成祖国统一大业,实现中国梦,是我们党肩负的重要历史任务。
①  正确
②  错误
【判断题】 1949年新中国成立标志着中华民族站起来了。
①  正确
②  错误
【判断题】 1949年新中国成立标志着中华民族富起来了。
①  正确
②  错误
【判断题】 人民代表大会制度是坚持党的领导、人民当家作主、依法治国有机统一的根本政治制度安排。
①  正确
②  错误
【判断题】 全面建成小康社会时已经完全实现了全国人民共同富裕的目标。
①  正确
②  错误
【判断题】 当前中国特色社会主义进入新时代则标志着中华民族迎来了富起来的伟大飞跃的时代。
①  正确
②  错误
【单选题】 供需双方分别按照不同的内部转移价格记价结算时采用的是
①  实际成本
②  市场价格
③  协商价格
④  双重市场价格
【单选题】 在其他因素不变的条件下,其变动不能影响保本点的因素是?
①  单位变动成本
②  固定成本
③  单价
④  销售量
【单选题】 某企业只生产一种产品,单价6元,单位制造成本4元,单位销售和管理变动成本0.5 元 , 销售500件,则其产品边际贡献为?元
①  65O
②  750
③  850
④  950