【单选题】【消耗次数: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
随机题目
【单选题】 16.—Youve made great progress in your studies of English, havent you? ---Yes, but much.
①  remainstodo
②  isremainedtodo
③  remainstobedone
④  isremainedtobedone
【单选题】 18. ______ the Atlantic Ocean crosses the equator, the trade winds cause a flow of water to the west.
①  That
②  When
③  Where
④  Though
【单选题】 13. Unfortunately, when I dropped in, Doctor Li _____ for Beijing to join in the fight again SARS, so we only had time for a few words.
①  justleft
②  hasjustleft
③  isjustleaving
④  wasjustleaving
【单选题】 21. — When will you leave for Paris for a visit? — next month.
①  Until
②  After
③  At
④  In
【单选题】 27. For quite _____ students,their teachers advice is more important than _____ of their parents.
①  few;one
②  afew;that
③  alittle;some
④  alot;many
【单选题】 23. Never _______ forget the days when _______ together with you.
①  shallI;Ilived
②  shallI;didIlive
③  Ishall;Ilived
④  Ishall;didIlived
【单选题】 28. "_____ your meeting is!" he offered them his sincere congratulations.
①  Howagreatsuccess
②  Whatagreatsuccess
③  Howgreatsuccess
④  Whatgreatsuccess
【单选题】 24. Why didnt you tell me there was no meeting today? I _____ all the way here _____the heavy snow.
①  neednthavedriven;though
②  canthavedriven;across
③  mustnthavedriven;through
④  shouldnthavedriven;cross
【单选题】 25.It was the training _______ he had at school _______ made him good jumper.
①  what;what
②  that;that
③  what;that
④  that;had
【单选题】 26. It was _____ great shock to the world that two airplanes crashed into _____ World Trade Centre in New York on Sept.11.
①  a;/
②  the;the
③  a;the
④  /;the