【单选题】【消耗次数: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 }
随机题目
【单选题】 在JavaScript中,下列表示返回函数运行结果的语句是( )。
①  retum;
②  document.write(number);
③  alert(number);
④  retum number;
【单选题】 在HTML5中,规定输入字段是必填的属性是( )。
①  required
②  formvalidate
③  validate
④  placeholder
【单选题】 标签imgsrc=”pic1.gif”align=”center”的作用是( )
①  插入图片pic1.gif,图片水平对齐采用“居中”方式
②  插入图片pic1.gif,图片垂直对齐采用“居中”方式
③  插入图片pic1.gif,图片右侧文字的水平对齐采用“居中”方式
④  插入图片pic1.gif,图片右侧文字的垂直位置相对图片“居中”
【单选题】 一个文件夹名称叫Parent,其下有一个叫做test.asp的文件,和一个名为Child的文件夹。Child下有一个名为default.htm文件,想在default.htm中作一个连接,链到test.asp。以下正确的是( )
①  ahref=“/test.asp”/a
②  ahref=“c:/test.asp”/a
③  ahref=“‥/test.asp”/a
④  ahref=“Parent/test.asp”/a
【单选题】 根据以下的HTML代码片段:? h1?style=font-style:italic;color:limegreen;?font-size:30pt;?hello!Nice?to?meet?you!??/h1h1?this?is?the?default?display?of?an?h1?element?/h1 以下描述不正确的是( )
①  第一个h1设置了特定的属性
②  第二个h1用了系统默认的属性
③  “hello!Nicetomeetyou!”的字体颜色是浅绿色
④  “thisisthedefaultdisplayofanh1element”的字体大小为30pt
【单选题】 对于map标记,单图多向超级链接使用area?shape=″图片形状″coords=″坐标″href=″URL″,其中图片形状不包括的是(???)
①  rect
②  circle
③  triangle
④  Poly
【单选题】 以下关于FONT标记符的说法中,错误的是( )
①  可以使用color属性指定文字颜色。
②  可以使用size属性指定文字大小(也就是字号)。
③  指定字号时可以使用1~7的数字。
④  语句FONTsize=+2这里是2号字/FONT将使文字以2号字显示。
【单选题】 参看以下的HTML代码:? htmlheadtitle/titleheadbodytable?border=1trtd?/tdtd?/td/trtrtd?/tdtd?/td/tr/table/body/html? 对以上代码,以下描述正确的是(??)
①  该网页内容的第一行显示“表格”
②  1和2的表格在同一列
③  1和2的表格在同一行
④  1和3的表格在同一列
【单选题】 a?href=#csust安徽继续教育在线的作用是(??B?)
①  超级链接到安徽继续教育在线网页上
②  超级链接到本文件中csust标记处
③  超级链接暂时不被运行
④  超级链接到#csust网页上
【单选题】 要建立一个输入单行文字的文本框,下面代码正确的是( )
①  inputtype=textarea
②  inputtype=text
③  inputtype=radio
④  inputtype=password