【单选题】【消耗次数:1】
以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
4
5
6
7
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的运行结果是: main() {int m=5; if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【多选题】 如果输入的是5,以下程序运行结果不正确的是() #include #define M n+n void main( ) { int n; int result; printf(请输入一个整数:); scanf(%d, result=M*M; printf(result = %d\n,result); }
①  100
②  35
③  25
④  50
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 以下程序的运行结果是()。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
【单选题】 两次运行下面的程序,如果从键盘上分别输入4和6,则输出结果是。main( ){ int x; scanf(“%d”, if(x++5) printf(“%d”,x); else printf(“%d\n”,x++);}
①  7和5
②  6和3
③  7和4
④  6和4
【单选题】 两次运行下面的程序,如果从键盘上分别输入6和4,则输出结果是。main( ){ int x; scanf(“%d”, if(x++5) printf(“%d”,x); else printf(“%d\n”,x--);}
①  7和5
②  6和3
③  7和4
④  6和4
【单选题】 下列程序执行后的输出结果是 #includevoid main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
随机题目
【单选题】 In some cases, your instructor may tell you the topics ____ or may give you a choice of topics to write about.
①  in advance
②  ahead of
③  above al
④  right away
【单选题】 Nancy was surprised that they have ____. They seemed to be a happy couple.
①  split up
②  broken down
③  fallen through
④  knocked out
【单选题】 — Whichsongdoyoulikebetter,Lucy?— IpreferthesongLittleApple ______ canattractmanypeople.
①  which
②  who
③  whom
④  where
【单选题】 Once ____, this power station will supply all the neighboring towns and villages with electricity.
①  it being completed
②  it completed
③  completed
④  it completes
【单选题】 The Brownings have not ____ yet and I doubt whether they will come.
①  turned in
②  turned out
③  turned up
④  turned to
【单选题】 The ____ in Janet’s character has hindered her from advancement in her career.
①  weakness
②  merit
③  defect
④  shortcoming
【单选题】 On New Year’s Eve, there will be a firework ____ at People’s Square.
①  display
②  performance
③  show
④  exhibition
【单选题】 The Apple Watch is very beautiful, but its too expensive. So I cant _____ it.
①  save
②  support
③  offer
④  afford
【单选题】 There isnt any difference between the two. I really dont know _________.
①  where to choose
②  which to choose
③  to choose what
④  to choose which
【单选题】 George was introduced to ____ activities at a young age, when he was hired to act as a lookout for drug dealers.
①  illegal
②  lawful
③  faithful
④  peaceful