网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若有定义:floatx=2,y;inta=3;语句y=1*(x+A./3;运行后,y的值为()。

A.2.0

B.1.0

C.0

D.1.666667


参考答案

更多 “ 若有定义:floatx=2,y;inta=3;语句y=1*(x+A./3;运行后,y的值为()。A.2.0B.1.0C.0D.1.666667 ” 相关考题
考题 若有定义:intx,y,z;语句x=(y=z=3,++y,z+=y);运行后x的值为()。A.6B.7C.8D.3

考题 3、若有定义语句: int a[]={1,2,3,4},y,*p=a[1]; 则执行语句“y=*++p;”之后,变量y的值为()。A.1B.2C.3D.4

考题 若有定义“int a=7; float x=2.5,y=4.7;”,则表达式“x+a%3*(int)(x+y)%2/4”的值为 。A.2.5B.2.75C.3.5D.0.0

考题 若有定义:int x,y,z; 语句 x=(y=z=3,++y,z+=y); 运行后,x的值为()。A.3B.6C.7D.8

考题 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]

考题 若有以下定义: 1. int a = 2, b = 3 ; 2. float x = 3.5, y = 2.1 ; 则表达式(int)(x+y)/4+a%b的值是()A.3.5B.5.600000C.3D.4.500000

考题 若有定义int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是()A.2.5B.2C.3.5D.4.0

考题 3、若有定义语句: int a[]={1,2,3,4},y,*p=a[1]; 则执行语句“y=*p++;”之后,变量y的值为()。A.1B.2C.3D.4

考题 若有定义int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是 。