【单选题】【消耗次数:1】
下述程序的运行结果( )。 #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
【单选题】 下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【单选题】 下述程序的运行结果( )。 #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=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=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=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
【单选题】 以下程序的运行结果是( )。 Main() {int k=4,a=3,b=2,c=; printf(\n %d\n,ka?k:cb?c:a); }
①  4
②  3
③  2
④  1
【单选题】 以下程序的运行结果是:main){intk=4,a=3,b=2,c=;printf\n%d\n,k<a?k:c<b?c:a);}
①  4
②  3
③  2
④  1
随机题目
【单选题】 一个汉字的机内码与国标码之间的差别是( )。
①  前者各字节的最高二进制位的值均为1,而后者均为0
②  前者各字节的最高二进制位的值均为0,而后者均为1
③  前者各字节的最高二进制位的值各为1、0,而后者为0、1
④  前者各字节的最高二进制位的值各为0、1,而后者为1、0
【单选题】 左键单击Word 2016窗口的最小化按钮,该应用程序处于( )状态。
①  不确定
②  被强制关闭
③  被暂时挂起
④  在后台继续运行
【单选题】 在Word 2016运行时,单击Ctrl+W键,可以实现( )。
①  关闭Word 2016程序
②  直接关闭该未保存的Word 2016文档
③  如果当前文档没有保存,会提示是否保存,然后关闭当前Word 2016文档
④  直接保存当前Word 2016文档
【单选题】 ( )组合键,是保存当前Word 2016文档的快捷键。
①  Ctrl+W
②  Ctrl+A
③  Ctrl+S
④  Ctrl+Z
【单选题】 在使用Word 2016编辑文档的时候,一定要遵循( )。
①  先选中,后操作
②  先编辑,再选中
③  先操作,后选中
④  先编辑,再操作
【单选题】 安装了搜狗输入法后,( )组合键可以从英文切换到中文输入法。
①  Ctrl+空格(space)
②  ctrl+~
③  shift+空格(space)
④  shift+~
【单选题】 以下说法正确的是( )
①  shift+enter组合键是硬回车
②  shift+enter组合键会另起一个新段落
③  enter键是软回车键
④  在Word 2016中编辑文档时,按enter键会另起一个新段落
【单选题】 按住( )键的同时按住鼠标左键拖动,可以画出水平直线
①  ctrl
②  shift
③  alt
④  tab
【单选题】 Word 2016文档缺省(默认)的扩展名为( )。
①  .dot
②  .doc
③  .rft
④  .docx
【单选题】 可以通过单击( )选项卡下的“符号”功能组按钮输入特殊符号。
①  设计
②  插入
③  布局
④  开始