设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )

admin2009-02-15  29

问题 设有如下变量定义:    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、表达式不正确

答案2

解析
转载请注明原文地址:https://kaotiyun.com/show/2WXp777K
0

最新回复(0)