> 数学 >
若有定义:int x=3,y=2;float a=2.5,b=3.5;则下面表达式的值为
(x+y)%2+(int)a/(int)b
人气:428 ℃ 时间:2019-11-05 21:19:06
解答
结果等于 1 .
如下:
(x+y)%2+(int)a/(int)b
等于:
(2+3)%2+2/3
等于
5%2+2/3
等于
1+2/3
等于
1+0
等于
1
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版