【单选题】【消耗次数: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 }
随机题目
【单选题】 下列不适用于降水深度较大的细砂地区的是:
①  轻型井点
②  管井井点
③  深井井点
④  集水坑
【单选题】 地下水无压力且井底又未达到不透水层的水井属于
①  无压非完整井
②  无压完整井
③  承压完整井
④  承压非完井
【单选题】 当地形起伏较大时,宜用什么方法确定最佳设计平面:
①  棱柱体法
②  标高加权平均法
③  最小二乘法
④  相关平差法
【单选题】 下列哪种不是影响边坡坡度的因素?
①  施工工期
②  气候条件
③  开挖宽度
④  开挖方法
【单选题】 基槽支护结构的形式宜采用
①  横撑式支撑
②  搅拌桩
③  挡土板
④  非重力式支护结构筑
【单选题】 采用三角棱柱体法计算土方量划分方格网的依据是:
①  按照角点标高的绝对值的大小
②  顺地形等高线
③  采用全填全挖型
④  划分零
【单选题】 下列可松性系数最大的土是
①  松软土
②  普通土
③  坚土
④  坚石
【单选题】 基坑(槽)路堤的土方量可采用下列方法计算
①  三角棱柱体法
②  等截面计算法
③  拟柱体体积计算法
④  四方棱柱体法
【单选题】 流砂发生的根本原因是:
①  动水压力的作用
②  地下水渗流
③  土体失重
④  降水措施不当
【单选题】 下列那一个不属于场地平整土方量的计算步骤
①  体积计算方法
②  边坡土方量计算
③  填挖平衡
④  划分调配区