【单选题】【消耗次数:1】
以下程序段的运行结果是()。 int s=15; switch(s/4) {default: printf(Over ) ; case 1: printf(One ) ; break; case 2: printf(Two ) ; }
Two
Over Two
Over One
One
参考答案:
复制
纠错
相关题目
【单选题】 以下程序段的运行结果是()。ints=15;switch(s/4){default:printf("Over");case1:printf("One");break;case2:printf("Two");}
①  Two
②  OverTwo
③  OverOne
④  One
【单选题】 以下程序的运行结果是()。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
【单选题】 下列程序执行后的输出结果是() 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
【单选题】 有以下程序,程序运行以后的输出结果是() #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
【单选题】 有以下程序: main( ) { int c; while((c=getchar( ) ) != \n ) { switch(c- 2 ) { case 0 : case 1 : putchar(c+4) ; case 2 : putchar(c+4) ; break; case 3 : putchar(c+3) ; default: putchar(c+2) ; break; } } printf(\n } 当输入: 247, 程序的输出结果是()。
①  689
②  6689
③  66778
④  66887
【单选题】 下述程序的运行结果( )。 #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
【单选题】 有以下程序:main(){intc;while((c=getchar())!=\n){switch(c-2){case0:case1:putchar(c+4);case2:putchar(c+4);break;case3:putchar(c+3);default:putchar(c+2);break;}}printf("\n");}当输入:247回车,程序的输出结果是()。
①  689
②  6689
③  66778
④  66887
【单选题】 下述程序的运行结果( )。 #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
【单选题】 运行以下程序,从键盘上输入china# #includevoid main() { int v1=0,v2=0; char ch; while((ch=getchar())!=#) switch(ch) { case a: case h: default: v1++; case 0:v2++; } printf(%d,%d\n,v1,v2); } 运行结果( )。
①  2,2
②  3,3
③  4,4
④  5,5
【单选题】 #define X a+b main( ) { int a=3,b=4,s1; s1=2*X; printf(%d\n,s1); },以上程序的运行结果是( )?
①  8
②  14
③  10
④  6
随机题目
【单选题】 以完成物质交换为主要功能的结构是
① 
②  动脉
③  静脉
④  毛细血管
⑤  淋巴管
【单选题】 右房室口周缘附有
①  二尖瓣
②  三尖瓣
③  主动脉瓣
④  肺动脉瓣
⑤  静脉瓣
【单选题】 心的正常起搏点是
①  窦房结
②  房室结
③  房室束
④  左、右束支
⑤  蒲肯野氏纤维网
【单选题】 心的静脉主干是
①  心大静脉
②  心中静脉
③  心小静脉
④  冠状窦
⑤  上腔静脉
【单选题】 分隔左、右心室的结构是
①  房间隔
②  室间隔
③  冠状沟
④  卵圆窝
⑤  前、后室间沟
【单选题】 左心室的出口是
①  上腔静脉口
②  下腔静脉口
③  主动脉口
④  肺动脉口
⑤  冠状窦口
【单选题】 下肢出血时常选择压迫的是
①  髂外动脉
②  股动脉
③  腘动脉
④  胫前动脉
⑤  胫后动脉
【单选题】 营养心包的动脉是
①  左冠状动脉
②  右冠状动脉
③  旋支
④  前室间支
⑤  心包支
【单选题】 不属于髂内动脉脏支的是
①  脐动脉
②  臀上动脉
③  膀胱上动脉
④  直肠上动脉
⑤  子宫动脉
【单选题】 阑尾动脉直接来源于
①  肠系膜上动脉
②  肠系膜下动脉
③  空肠动脉
④  回肠动脉
⑤  回结肠动脉