网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
2、设int a=3,b=4,c=5;表达式(a+b)>c&&b==c的值是:
A.2
B.-1
C.0
D.1
参考答案和解析
C
更多 “2、设int a=3,b=4,c=5;表达式(a+b)>cb==c的值是:A.2B.-1C.0D.1” 相关考题
考题
若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为( )(float) (a+b)/2+(int)×%(int)yA.5.5B.55C.5.500000D.55.00000
考题
设a=2,b=3,c=4,d=5,表达式3>2*b or a=c and b<>c or c>d的值是( )A.1B.trueC
设a=2,b=3,c=4,d=5,表达式32*b or a=c and bc or cd的值是( )A.1B.trueC.falseD.-1
考题
设int b=2;, 则表达式(b>1)的值是______。A.0B.2C.4D.8
设int b=2;, 则表达式(b<<2)/(b>>1)的值是______。A.0B.2C.4D.8
考题
若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()
A.3.5B.3.0C.2.5D.2.0
考题
若有定义:int a=4, b=5;float x=3.4,y=2.1;,则下列表达式的值为( )。 (float) (a+b)/2+(int)x%(int)yA.5.5B.55C.5.5D.55
考题
设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是( )。A. B. S
设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是( )。A.B.C.D.
考题
单选题若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()A
3.5B
3.0C
2.5D
2.0
热门标签
最新试卷