int x=4; int y=5; y=x*--y==++x*y?x++:y--; 求x=?,y=
举一反三
- 如下C程序的输出是什么?#include [stdio.h]void Func1 (int x, int y);void Func2 (int *x, int *y); int main() { int x = 3; int y = 4;Func1 (x, y); printf ("x = %d, y = %d\n", x, y);Func2(&x, &y); printf ("x = %d, y = %d\n", x, y);} void Func1 (int x, int y) { x = x + y; y = x - y; x = x - y; printf ("x = %d, y = %d\n", x, y);} void Func2 (int *x, int *y) { *x = *x + *y; *y = *x - *y; *x = *x - *y;;} A: x = 3, y = 4x = 3, y = 4x = 3, y = 4 B: x = 4, y = 3x = 4, y = 3x = 4, y = 3 C: x = 3, y = 4x = 3, y = 4x = 4, y = 3 D: x = 4, y = 3x = 3, y = 4x = 4, y = 3
- 下面代码的输出结果是()。 int x = 5; int y = x++; Console.WriteLine(y); y = ++x; Console.WriteLine(y);
- int x=2, y=5; 则x + y =_____x - y =_____x * y =_____x / y =_____x % y =_____
- 阅读程序,分析输出结果是()。#include [stdio.h]void main(){ int x=10,y=5; switch(x) { case 1:x++; default: x+=y;case 2:y--;case 3:x--;}printf("x=%d,y=%d",x,y);} A: x=14,y=4 B: x=15,y=5 C: x=10,y=5 D: x=15,y=4
- 阅读程序,分析输出结果是()。#include [stdio.h]void main(){ int x=10,y=5; switch(x) { case 1:x++; default: x+=y;case 2:y--;case 3:x--;}printf("x=%d,y=%d",x,y);} A: x=15,y=5 B: x=10,y=5 C: x=14,y=4 D: x=15,y=4