【单选题】【消耗次数: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
随机题目
【判断题】 A word is a symbol, a representation of something in life, either physical or abstract.
①  正确
②  错误
【判断题】 Although a society is changing , the vocabulary in a language is always stable, and is never changing.
①  正确
②  错误
【单选题】 In language studies, linguists may investigate the history and stages of language change in a course of time. This is called _______ approach.It is historical lexicology.
①  synchronic
②  descriptive
③  diachronic
④  general
【单选题】 Lexicology, a branch of linguistics, deals with_______of words.
①  the nature
②  the history
③  the meaning and use
④  all of the above
【单选题】 Which of the following types of lexicology refers to the description of the vocabulary of a given language?
①  General lexicology
②  Special lexicology
③  Historical lexicology
④  Descriptive lexicology
【单选题】 The essential difference between grammar and lexicology is that the former deals with_______of words and the latter with _______ of words.
①  meanings; forms and structures
②  forms and structures; meanings
③  forms; structures and meanings
④  meanings and forms; structures
【多选题】 依法治国是党领导人民治理国家的基本方略,实行依法治国具有重大而深远的意义( ).
①  是发展社会主义市场经济的客观要求
②  是建设社会主义民主政治的基本保证
③  是社会主义文明进步的重要标志
④  是维护社会稳定、国家长治久安的重要保证
【单选题】 下列关于预算的说法,哪项是错误的?
①  预算法上的预算指国家预算
②  国家实行一级政府一级预算
③  乡级政府可以不设预算
④  我国目前有五级预算体系
【单选题】 下列哪项说法不符合我国《政府采购法》的规定?
①  政府采购应严格按批准的预算执行
②  政府采购应委托集中采购机构代理采购
③  政府采购应当采购本国货物、工程和服务
④  政府采购应当有助于实现国家的经济和社会发展政策目标
【判断题】 所谓民间借贷,是指自然人、法人、其他组织之间及其相互之间进行资金融通的行为。
①  正确
②  错误