设int x=1, y=1; 表达式(!x||y--)的值是()。A、1B、2C、-1D、0
设int x=1, y=1; 表达式(!x||y--)的值是()。
- A、1
- B、2
- C、-1
- D、0
相关考题:
设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是()。A.xyB.x 设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是( )。A.xyB.x<=yC.x‖y+zy-zD.!((x<y)!z‖1)
public class WhileFoo { public static void main (String []args) { int x= 1, y = 6; while (y--) {x--;} system.out.printIn(“x=” + x “y =” + y); } } What is the result?() A、 The output is x = 6 y = 0B、 The output is x = 7 y = 0C、 The output is x = 6 y = -1D、 The output is x = 7 y = -1E、 Compilation will fail.
x=1,y=1,z=1,执行表达式w=++x||++y++z后,x、y、z的值分别为()。A、x=2,y=1,z=1B、x=2,y=2,z=2C、x=1,y=1,z=1D、x=2,y=2,z=1
int x = 1, y =6; while (y--) { x++; } System.out.println(“x =” + x + “y =” +y); What is the result?() A、 x = 6 y = 0B、 x = 7 y = 0C、 x = 6 y = -1D、 x = 7 y = -1E、 Compilation fails.
单选题int x = 1, y =6; while (y--) { x++; } System.out.println(“x =” + x + “y =” +y); What is the result?()A x = 6 y = 0B x = 7 y = 0C x = 6 y = -1D x = 7 y = -1E Compilation fails.
单选题设X、Y、Z都是int整型变量,且x=2,y=3,z=4,则下面的表达式中,值为0的表达式是()。A’x’’z’B(!y==1)(!z==0)C(xD1 br=""x