【单选题】【消耗次数:1】
下列程序执行后的输出结果是________. #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=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=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
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 若变量已正确定义,有以下程序段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
【单选题】 以下程序的输出结果是(  )。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
①  101
②  6
③  4
④  3
【简答题】 以下程序的输出结果是[填空1]。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
随机题目
【单选题】 要在纵/横方向切换页面版面格式,需要( )
①  排列菜单/切换页面方向
②  版面菜单/切换页面方向
③  视图菜单/切换页面方向
④  工具菜单/切换页面方向
【单选题】 状态栏显示对象哪些信息:( )
①  位置
②  格式
③  外框
④  名字
【单选题】 下列哪个软件可以绘制矢量图形()
①  photoshop
②  coreldraw
③  word
④  excle
【单选题】 Coreldraw不能打开的矢量文件是:( )
①  dxf
②  dwg
③  max
④  ai
【多选题】 法的内容不是凭空产生的,也不是统治者个人随心所欲决定的,而是由社会的物质生活条件所决定的。这里的物质生活条件包括哪些?( )
①  人口状况
②  地理环境
③  生产方式
④  自然条件
【单选题】 CorelDRAW中能否将选定的对象精确定位 ()
①  可以
②  不可以
【单选题】 全色填充快捷键是()
①  F11
②  Shift+F11
③  F12
④  Shift+F12
【单选题】 要将拆分字的文字修正可将文字()
①  群组
②  合并
③  填充
④  焊接
【单选题】 使用“图纸”工具可在Coreldraw中产生一个()
①  空白页面
②  图纸框
③  双线框
④  网格
【单选题】 在CorelDRAW中使用椭圆形工具进行绘制操作时,如果按住Shift+Ctrl键,那么将可以绘制出()
①  以起始点为圆心的椭圆图形
②  以工作区中心为圆心的椭圆图形
③  以起始点为圆心的圆形
④  以工作区中心为圆心的圆形