【单选题】【消耗次数: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
随机题目
【单选题】 下列属于全长锚固型锚杆的是()
①  管缝式锚杆
②  金属倒楔式锚杆
③  树脂锚杆
④  快硬水泥锚杆
【判断题】 锚喷支护是锚杆与喷射混凝土联合支护的简称
①  正确
②  错误
【单选题】 锚杆支护中“三径”关系是否合理匹配,直接影响了锚固效果及锚杆支护的安全可靠性和经济合理性。“三径”是指:
①  锚杆杆体直径、锚杆螺帽直径和托盘直径
②  锚杆杆体直径、锚梁直径和锚孔直径
③  锚杆中部杆体直径、锚杆螺帽直径和锚杆尾部直径
④  锚杆杆体直径、锚孔直径和树脂药卷直径
【判断题】 在软岩工程中,为使支护方式更为合理或因施工工艺的需要,往往同时采用集中支护形式的联合支护。
①  正确
②  错误
【判断题】 巷道支护的主要材料有木材、金属材料、石材、混凝土、钢筋混凝土、砂浆等
①  正确
②  错误
【单选题】 下列选项中属于全长锚固型锚杆的是:
①  金属倒楔式锚杆
②  压缩木锚杆
③  树脂锚杆
④  快硬水泥锚杆
【单选题】 以下那一项属于影响硐室围岩稳定性的人为因素:
①  围岩应力
②  硐室选定的位置
③  岩体结构
④  地下水
【判断题】 纯水泥熟料磨细时,常掺有适量的石膏,以调节水泥的凝结时间。
①  正确
②  错误
【单选题】 硅酸盐水泥熟料掺入适量活性材料,不仅能提高水泥产量、降低水泥成本,而且可以改善水泥的某些性能,调节水泥的强度等级。下面属于活性材料的是:
①  石英砂
②  粘土
③  石灰石
④  粉煤灰
【单选题】 在生产中,为保证巷道的顺直和一定的坡度,会出现下列哪种采石位置情况( )
①  挑顶
②  卧底
③  挑顶兼卧底
④  以上三种情况