设有如下变量定义: double a= 3.500000;float b=2.5;
题型:单项选择题
问题:
设有如下变量定义:
double a= 3.500000;float b=2.5;int m=2,n=3;
则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )。
A.2.5
B.3.5
C.4.5
D.表达式不正确
设有如下变量定义:
double a= 3.500000;float b=2.5;int m=2,n=3;
则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )。
A.2.5
B.3.5
C.4.5
D.表达式不正确