>
其他
>
若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是?
人气:458 ℃ 时间:2020-03-24 02:03:47
解答
int a=7;
float x=2.5,y=4.7;
x+a%3*(int)(x+y)%2/4
=> 4.7 + 7 % 3 * (int) ( 2.5+4.7) % 2 / 4
=> 4.7 + 1 * (int) (7.2) % 2 / 4
=> 4.7 + 1 * 7 % 2 / 4
=>4.7 + 1 * 1 / 4
=>4.7 + 0
=>4.7
考查运算符以及类型转换.
推荐
15.若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是( )
若有定义语句int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值为多少
若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是
若有定义“int a=7;float x=2.5,y=4.7;”,则表达式x+a%3*(int)(x+y)%2/4的值是多
若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是
1÷32÷0.05÷0.25÷0.5.
we are totally into you
为什么运动产生风
猜你喜欢
"早"用英语怎么说
十六进制数62A0H与CFA0H相加,其标志位OF值?
四氧化三铁是纯净物还是化合物
已知点P(x,y)为圆C:x^2+y^2-4x+3=0上一点,C为圆心.求向量PC乘以向量PO(O为坐标原点)的取值范围
门齿、犬齿、臼齿分别是哪几颗?
水是由2个氢分子1个氧分子构成的,还是有2个氢原子1个氧分子构成的
一分贝的声音到底有多大?
--- Alice is moving to her new apartment next Saturday.
© 2024 79432.Com All Rights Reserved.
电脑版
|
手机版