下列语句正确的是( )
A: If x<3*y And x>y Then y=3x
B: If x<3*y And x>y Then y=x^3
C: If x<3*y : x>y Then y=x^3
D: If x<3*y And x>y Then y=x**3
A: If x<3*y And x>y Then y=3x
B: If x<3*y And x>y Then y=x^3
C: If x<3*y : x>y Then y=x^3
D: If x<3*y And x>y Then y=x**3
举一反三
- 下列语句正确的是________。 A: If X < 3 * Y And X > Y Then Y = X ^ 3 B: If X < 3 * Y And X > Y Then Y = X3 C: If X < 3 * Y : X > Y Then Y = X ^ 3 D: If X < 3 * Y And X > Y Then Y = X * * 3
- 如下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
- 下列语句正确的是( ) A: If x<3*y And x>y Then y=3x B: If x<3*y And x>y Then y=x^3 C: If x<3*y : x>y Then y=x^3 D: If x<3*y And x>y Then y=x**3
- 执行以下语句的结果为______。 int x=3,y;int*px=&x;y=*px++; A: x=3,y=4 B: x=3,y=3 C: x=4,y=4 D: x=3,y不知
- 已知int x=1,y=2,z=3;以下语句执行后x,y,z的值是( ). if(x>y) z=x; x=y; y=z; A: x=1, y=2, z=3 B: x=2, y=3, z=3 C: x=2, y=3, z=1 D: x=2, y=3, z=2