【单选题】【消耗次数: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
参考答案:
复制
纠错
相关题目
【单选题】 执行下面程序: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
【单选题】 以下程序段的运行结果是()。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); }
①  a=2,b=1
②  a=1,b=2
③  a=0,b=1
④  a=1,b=0
【单选题】 下列程序执行后的输出结果是() 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
随机题目
【单选题】 新冠肺炎康复治疗管理涉及( )
【单选题】 用磷酸氯喹治疗新冠肺炎患者,成人体重大于50kg者,每次( )mg,每日2次
【单选题】 按照七步洗手法操作手卫生,揉搓时间应大于( )
【单选题】 新冠肺炎病例密切接触者的集中医学观察场所的选择条件,叙述错误的是( )
【单选题】 做好疫情防控,发热门诊的空调系统应独立设置,禁止使用循环回风的空气空调系统,且每周应对空调系统清洗消毒( )次,对空调冷却水集中收集,消毒后排放
【单选题】 飞沫传播是新型冠状病毒的主要传播途径。飞沫一般指的是直径( )的含水颗粒(病原微生物可附着于飞沫上),并且飞沫可以通过一定的距离,一般是( ),进入易感人群的口腔、鼻腔和眼部等黏膜表面而致病
【单选题】 针对新冠疫情,以下哪类工作人员无需穿戴防水隔离衣( )
【单选题】 新型冠状病毒肺炎的CT影像学特征最具代表性的是( )
【单选题】 新冠肺炎患者密切接触者最突出的情绪变化是( )
【单选题】 关于新冠肺炎患者的胸部影像学特点,下列说法错误的是( )