若有C语句int k=5;float x=1.2;,则表达式(int)(x+k) 的值是()
第1题:
若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是
A.2.500000
B.2.750000
C.3.500000
D.0.000000
第2题:
若有定义语句:“int a=10;double b=3.14;”,则表达式A+a+b值的类型是( )。
A.char
B.int
C.double
D.float
第3题:
A.3.5
B.3.0
C.2.5
D.2.0
第4题:
A.8
B.7
C.6
D.5
第5题:
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是( )。
第6题:
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。
A.-20
B.-l0
C.0
D.10
第7题:
若有定义:floatx=3.5,y=3.6;则表达式()的值为6。
A.(int)x+(int)y
B.x+y
C.(int)(x+y)
D.int(x+y)
第8题:
若有说明:char w; int x; float y; double z; 则表达式w*x+y-z的值的数据类型是()。
第9题:
若有定义:int x=5,y=6;则表达式x=(y==6)的值为()
第10题:
若有声明和语句: int a=5; a++; 则此处表达式a++的值是()
第11题:
3.5
3.0
2.5
2.0
第12题:
++&x
(*p)--
&(x+5)
p=1000
第13题:
若有定义语句:int x=3,y=2,z=1;则表达式x <y?x:y的值是______。
第14题:
若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为( )。
第15题:
A.5
B.1
C.6
D.0
第16题:
若有定义: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.5
D.55
第17题:
若有定义: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
第18题:
若有以下定义:
char a;int b;
float c;double d;
则表达式a*b+d-c值的类型为( )。
A.A. float
B.int
C.char
D.double
第19题:
试题14
若有定义语句:int a=10; double b=3.14; , 则表达式‘A’+a +b值的类型是()
A.char
B.int
C.double
D.float
第20题:
若有定义:int x;则语句x=(2*3)+6%5;运行后,x的值是()
第21题:
若有语句:int x=6,*p=&x;则下面正确的表达式是()
第22题:
若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()
第23题:
5
6.2
7
6