【单选题】【消耗次数:1】
下列程序执行后的输出结果是 #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
参考答案:
复制
纠错
相关题目
【单选题】 下列程序执行后的输出结果是________. #include stdio.h void 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
【单选题】 下列程序执行后的输出结果是_______.#include stdio.h void 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
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,1,3
②  4,5,6
③  5,0,3
④  3,4,7
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,0,3
②  4,5,6
③  5,1,3
④  3,4,6
【单选题】 下述程序的运行结果( )。 #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 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
【单选题】 若变量已正确定义,有以下程序段int a=3,b=5,c=7;if(ab)a=b;c=a;if(c!=a)c=b;;printf(%d,%d,%d\na,b,c)其输出结果是
①  语法错误
②  3,5,3
③  3,5,5
④  3,5,7
【单选题】 有如下程序: #includevoid main( ) { int a=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
【单选题】 以下程序的运行结果是:main){intk=4,a=3,b=2,c=;printf\n%d\n,k<a?k:c<b?c:a);}
①  4
②  3
③  2
④  1
随机题目
【单选题】 可被阿托品阻断的受体是
①  α受体
②  β受体
③  N型受体
④  M型受体
⑤  H和M型受体
【单选题】 交感和副交感神经节前纤维释放的递质是
①  去甲肾上腺素
②  乙酰胆碱
③  肾上腺素
④  多巴胺
⑤  5-羟色胺
【单选题】 帕金森氏症患者的主要症状是
①  肌张力降低
②  静止性震颤
③  运动共济失调
④  感觉迟钝
⑤  随意运动过多
【单选题】 In the author’s opinion, if you cannot memorize all the new words you are learning, it is because _____.
①  you are forgetful
②  you are not working hard enough
③  you are not interested in memorizing English words
④  you are trying to memorize too many new words at a time
【单选题】 I’m very sorry to kept you ______ for two hours.
①  wait
②  waited
③  waits
④  waiting
【单选题】 If you listen to the tape again and again, you may ____.
①  want to retell the general meaning of what you hear from the tape
②  feel so bored that you cannot understand what you hear from the tape
③  understand what you hear from the tape better and better
④  repeat the exact words you hear from the tape
【单选题】 Some handicapped people may be ______ to go out at all and a visitor is more than welcome.
①  able
②  unable
③  disable
④  disabled
【单选题】 I was ______ tired that I had to rest.
①  very
②  so
③  enough
④  too
【单选题】 In the eyes of the author, one should start from ______ in wide reading.
①  interesting materials
②  books with very few pages
③  materials not too difficult
④  both A and C
【单选题】 In the first sentence, “by no means” means ____.
①  without method
②  not at all
③  absolutely
④  above all