【单选题】【消耗次数:1】
以下程序的运行结果是()。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
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 执行下面程序:main(){intx=1,y=1,z=1;x=x+++y+++z++;printf("%d,%d,%d",x,++y,z++);}输出的结果为()
①  4,3,2
②  3,3,2
③  3,3,3
④  3,2,2
【单选题】 下述程序的运行结果( )。 #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() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【单选题】 以下程序段的运行结果是()。 int s=15; switch(s/4) {default: printf(Over ) ; case 1: printf(One ) ; break; case 2: printf(Two ) ; }
①  Two
②  Over Two
③  Over One
④  One
【单选题】 以下程序的运行结果是: main() {int m=5; if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【单选题】 下述程序的运行结果( )。 #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
【单选题】 以下程序段的运行结果是()。ints=15;switch(s/4){default:printf("Over");case1:printf("One");break;case2:printf("Two");}
①  Two
②  OverTwo
③  OverOne
④  One
【单选题】 下列程序执行后的输出结果是() 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
【单选题】 在采访中,记者既要"身入",又要"心入"。"心入",就是要有强烈的社会责任感, 要对客观事物进行由表及里的分析,还要().
①  A.广泛地接触群众
②  B.多方面地挖掘材料
③  C.细心地掂量各种材料的价值
④  D.细心地掂量各种材料的价值
【单选题】 以下程序的运行结果是()。voidmain(){intm,n=1,t=1;if(t==0)t=-t;elsem=n=0?7:3;printf("%d\n",m);}
①  3
②  -1
③  7
④  1
随机题目
【单选题】 声母g和k发音的区别是()。
①  发音部位
②  气流强弱
③  是否振动声带
④  成阻和消阻的方式
【单选题】 从调值看,方言与普通话的差异主要有调值( )的不同。
①  高低
②  发音
③  变化
④  数量
【单选题】 普通话的每个音节都有自己的声调,可是在语流中有些音节受前面音节的影响,失去原有声调,变成一种又轻又短的调子,这就是( )。
①  轻音
②  变音
③  轻声
④  清音
【单选题】 下列哪个韵母只能自成音节?()
①  er
②  -i(前)
③  -i(后)
④  i
【单选题】 上声出现在阴平、阳平、去声、轻声前,上声变半上,调值由214变为( )。
①  21
②  214
③  35
④  211
【单选题】 阳平,俗称二声,又叫高升调,调值( )。
①  25
②  15
③  24
④  35
【单选题】 下列字中韵尾是-ng的有()?
① 
② 
③ 
④ 
【单选题】 阴平,俗称一声,又叫高平调,调值( )。
①  51
②  54
③  35
④  55
【单选题】 轻声具有区别( )的作用。
①  语音
②  语法
③  语调
④  语义
【单选题】 《中华人民共和国宪法》()条规定“国家推广全国通用的普通话”。
①  第9条
②  第10条
③  第19条
④  第20条