未分类题
有以下程序main(){ int x,y; scanf('%d',&x); y=x>12?x+10:x-12; printf('%d\n',y);}若运行时给变量x输入12,则以下程序的运行结果是A.0 B.22C.12 D.10
A.0
B.22C.12
C.10
【参考答案】
A
在本题中,程序首先定义了两个整型变量x和y,然后通过键盘输入的方式给这变量x赋初值。执行语句y=x>12?x......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
<上一题
目录
下一题>
热门
试题
未分类题
以下程序的输出结果是main(){ int a=21,b=11; printf('%d\n',--a+b,--b+a);} A.30 B.31 C.32 D.33
点击查看答案
单项选择题
A.They want to continue their negotiation in Hong Kong.B.They will push the US to drive down the global cotton price.C.They want the US to reform. its policies with the European Union.D.They hope the US will stop providing subsidies to its cotton farmers.
A.They
B.
B.They
C.
C.They
D.
D.They
E.
点击查看答案
相关试题
当使用魔棒工具选择图像时,在“容差”数值...
在拼合图层时,会将暂不显示的图层全部删除...
显示与隐藏参考线快捷键是Ctrl+H()
采用该战略有可能面临哪些障碍?如何解决?
From this passage we can learn tha...