若有定义:floatx=2,y;inta=3;语句y=1*(x+A./3;运行后,y的值为()。
A.2.0
B.1.0
C.0
D.1.666667
第1题:
1、若有定义语句: int a[]={1,2,3,4},y,*p=&a[0]; 则执行语句“y=++(*p);”之后,值发生了变化的元素是()。
A.a[0]
B.a[1]
C.a[2]
D.a[3]
第2题:
若有定义int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是()
A.2.5
B.2
C.3.5
D.4.0
第3题:
若有定义int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是 。
第4题:
若有以下定义: 1. int a = 2, b = 3 ; 2. float x = 3.5, y = 2.1 ; 则表达式(int)(x+y)/4+a%b的值是()
A.3.5
B.5.600000
C.3
D.4.500000
第5题:
3、若有定义语句: int a[]={1,2,3,4},y,*p=&a[1]; 则执行语句“y=*p++;”之后,变量y的值为()。
A.1
B.2
C.3
D.4