若x=6 ,y=5 则表达式int max=x>y?x:y 的结果为()
举一反三
- 若x=6,y=5则表达式intmax=x>y?x:y的结果为() A: 6 B: 5 C: true D: false
- 如果x=5,y=6,则(x>y)?x:++y表达返回值为:()
- 有如下程序:#include"stdio.h"int max(x,y)int x,y;{int z;if(x>;y) z=x;else z=y;return(z);}main(){extern int a,b;printf(”max=%d\n",max(a,b));}int a=3,b=5;运行结果为( )。 A: max=3 B: max=4 C: max=5 D: max=6
- 哪个是如下代码的输出结果:(). double x = 5.5; int y = (int)x; System.out.println("x is " + x + " and y is " + y); A: x is 5 and y is 6 B: x is 6.0 and y is 6.0 C: x is 6 and y is 6 D: x is 5.5 and y is 5
- int x, y; y = x = 5;则表达式 y == x == 5; 的值是 1.