【单选题】【消耗次数:1】
以下程序的运行结果是: main() {int m=5; if(m++5) printf(%d\n else printf(%d\n,m--); }
4
5
6
7
参考答案:
复制
纠错
相关题目
【单选题】 以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【多选题】 如果输入的是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=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
【单选题】 有以下程序,执行后输出结果是() main( ) { int m[][3]={1,4,7,2,5,8,3,6,9}; int i,j,k=2; for(i=0;i { printf(%d ,m[k][i]); } }
①  4 5 6
②  2 5 8
③  3 6 9
④  7 8 9
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 以下程序的运行结果是()。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
随机题目
【单选题】 Charles regretted ______ the TV set last year. The price has now come down.
①  buying
②  to buy
③  of
④  from
【单选题】 I didn’t mean to do that. Please forgive me.____________
①  Not too bad.
②  Never mind.
③  It’s a pleasure.
④  Thank you.
【单选题】 No sooner _______ than they began to work.
①  they had arrived
②  they would arrive
③  had they arrived
④  would they arrive
【单选题】 Louis was asked to ___ the man who stole her purse.
①  confirm
②  recognize
③  claim
④  identify
【单选题】 For thousands of years man dreamed  () seemed impossible dreams about flying.
①  what
②  that
③  which
④  why
【单选题】 ___________ priorities
①  make
②  set
③  establish
④  identify
【单选题】 _______ these honours he received a sum of money.
①  Besides
②  Outside
③  But
④  Except
【单选题】 He didn’t ______ to cause so much unhappiness.
①  extend
②  attend
③  intend
④  tend
【单选题】 The man told me that by the end of the week he _______ away from his hometown for 20 years.
①  has been
②  will have been
③  is to be
④  would have been
【单选题】 Although he did not know London well, he made his way ______ to the airport.
①  easy enough
②  enough
③  easily enough
④  enough easily