设有如下的变量定义:double x=4.700000;float y=2.5f;int z=7;则执行表达式“y+z%3* (int) (x+y)%2/4”后的值是【 】。
设有如下的变量定义:
double x=4.700000;float y=2.5f;int z=7;
则执行表达式“y+z%3* (int) (x+y)%2/4”后的值是【 】。
相关考题:
设x为float型变量,y为double型变量,a为int型变量,b为long型变量, c为char型变量,则表达式x+y*a/x+b/y+c的值为()类型。A.intB.doubleC.charD.long
设x为float型变量,y为double型变量,a为int型变量,b为long型变量, c为char型变量,则表达式x+y*a/x+b/y+c的值的类型是()。A.doubleB.longC.intD.char
变量dx、dy和dz的声明如下: double dx = (double) x; double dy = (double) y; double dz = (double) z; 已知float和double分别采用IEEE 754单精度和双精度浮点数格式,sizeof(int)=4,对于任意int型变量x、y和z,以下哪些C语言关系表达式是非永真的?A.dx*dx >= 0B.(double)(float) x == dxC.dx+dy == (double) (x+y)D.(dx+dy)+dz == dx+(dy+dz)E.dx*dy*dz == dz*dy*dxF.dx/dx == dy/dy
设x为float型变量,y为double型变量,a为int型变量,b为long型变量, c为char型变量,则表达式x+y*a/x+b/y+c的值为()类型。A.intB.longC.doubleD.char
变量dx、dy和dz的声明和初始化如下: double dx = (double) x; double dy = (double) y; double dz = (double) z; 若float和double分别采用IEEE 754单精度和双精度浮点数格式,sizeof(int)=4,则对于任意int型变量x、y和z,以下哪个关系表达式是永真的?A.dx*dx >= 0B.(double)(float) x == dxC.dx+dy == (double) (x+y)D.(dx+dy)+dz == dx+(dy+dz)E.dx*dy*dz == dz*dy*dxF.dx/dx == dy/dy