若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是?
1个回答
2018-11-17
展开全部
x+a%3*(int)(x+y)%2/4
=2.5+7%3*(int)(2.5+4.7)%2/4
=2.5+1*7%2/4
=2.5+7%2/4
=2.5+1/4
=2.5
=2.5+7%3*(int)(2.5+4.7)%2/4
=2.5+1*7%2/4
=2.5+7%2/4
=2.5+1/4
=2.5
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询