以下是C语言的合法标识的是( )。
A: X2
B: ?x
C: int
D: 4x
A: X2
B: ?x
C: int
D: 4x
举一反三
- 如下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
- 已知\( y = {x^2} + 4x \),则\( dy \)为( ). A: \( (2x + 4)dx \) B: \( 2xdx \) C: \( ({x^2} + 4)dx \) D: \( ({x^2} + 4x)dx \)
- 下列数组定义合法的是? A: int x[][3]; B: int x[2][]={1,2,3,4}; C: int x[2][]={0}; D: int x[][2+1]={1,2,3,4};
- 已知函数f(x)是定义在(-∞,+∞)上的奇函数,当x∈[0,+∞)时,f(x)=x()2()-4x,则当x∈(-∞,0)时,f(x)=()(5.0分)A.()x()2()+4x()B.()x()2()-4x()C.()-x()2()+4x()D.()-x()2()-4x
- 11、下列说法错误的是( )A、x=2是方程x-10=-4x的解B、方程2x+4=5x-2的解是x=2C、x=2和x=-2都是方程x2=4的解D、x=y不是方程