【单选题】【消耗次数: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 }
随机题目
【单选题】 多媒体元素不包括那些( )。
①  视频
②  音频
③  图形
④  文字
【判断题】 语音的频率范围主要集中在100~10kHz范围内( )。
①  正确
②  错误
【单选题】 声音信号可以分为两种:模拟信号与物理信号( )。
①  正确
②  错误
【单选题】 在Adobe Audition CS6 中,进入到“多轨编辑器”的快捷键是9( )。
①  正确
②  错误
【单选题】 通常的扫描仪、数码相机和数码摄像机的光电转换元件都是CCD( )。
①  正确
②  错误
【判断题】 就合成乐曲的音质而言,FM合成器比波表合成器合成的音质好( )。
①  正确
②  错误
【单选题】 以下不属于粘贴命令的是( )。
①  粘贴到新文件
②  粘贴到剪贴板
③  粘贴
④  混合式粘贴
【判断题】 CD-ROM和DVD存储数据的原理是一样的( )。
①  正确
②  错误
【单选题】 按照视频信息的存储与处理方式不同,视频可分为哪几类( ) 。
①  数字视频、网络视频
②  模拟视频、数字视频
③  模拟视频、流媒体
④  模拟视频、网络视频
【单选题】 下列哪项不是多媒体技术的主要特性( )。
①  集成性
②  实时性
③  动态性
④  交互性