單項選擇題

若有定義:int a=2,b=3;floatx=3.5,y=2.5;則表達式(float)(a+b)/2+(int)x%(int)y的值是()

A.3.5
B.3.0
C.2.5
D.2.0

微信掃碼免費搜題