【单选题】【消耗次数: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
随机题目
【单选题】 8.--What canI do for you? --Id like to buy a book, _____ that was wriiten by Lu Xun.
①  which
②  one
③  but
④  all
【单选题】 3.Attheshop,theywantedtoshowmeallthedresses,butIwasinterestedonlyin_____inthewindow.
①  this
②  that
③  it
④  the one
【单选题】 9. Some of the wheat came from Canada. How about _______?
①  another
②  the others
③  the other
④  the rest
【单选题】 7. --Did______ of your parents come to attend the openingceremony? --_______ of them came.
①  None
②  Neither
③  either; Neither
④  both; None
【单选题】 2.—Daddy,whichofthesesmarthatsdoyoulikebestinthehatshop?—_____.Theyarebothexpensiveandlesswarm-keeping.
①  Either
②  Nothing
③  Neither
④  None
【单选题】 1.DoyoureallybelievethatMrWhitehasblamedusfortheaccident,especially_______?
①  you and me
②  I and you
③  you and I
④  you and we
【单选题】 6. His earliest plays are excellent, but his latest one is __________.
①  something
②  everything
③  anything
④  nothing
【单选题】 5.Theboyspentasmuchtimeplayingcomputergamesashe____studying.
①  does
②  was
③  had
④  did
【单选题】 10. Please waitfor ______ while.Ill be back in _______ minute.
①  the
②  a
③  the
④  a
【单选题】 7. She wishes to be ________ nightingale(夜莺).
①  the
②  an
③  a
④  /