A.7
B.8
C.9
D.10
第1题:
若有定义:“int a=4,b=5;float x=3.4,y=2.1;”,则下列表达式的值为( )。 (float)(a+b)/2+(int)x%(int)y;
A.5.5
B.55
C.5.500000
D.55.00000
第2题:
若有定义:int a,b;表达式a=2,b=5,a++,b++,a+b的值为______。
第3题:
假设变量a、b均为整型,则表达式(a=2,b=5,a++,b++,a+b)的值为 。
第4题:
若有定义:int a=2,b=3;float x=3.5,y=2.5;则下面表达式的值为______。(float)(a+b)/2+(int)x%(int)y
A.3.5
B.35
C.3.5
D.35
第5题:
6、若有定义:int k=7;float a=2.5,b=4.7;则表达式a+k%3*(int)(a+b)%2/4的值是()。
A.2.500000
B.2.750000
C.3.500000
D.0.000000