• 2021-04-14 问题

    以下程序运行后的输出结果是。 #define PR(int) printf("int=%d\n",int) main { int x=1,y=1,z=1; x+=y+=z; PR(x<y?x:y); PR(x<y?x++:y++); PR(x); PR(y); PR(z+=x<y?x++:y++); PR(y); }: int=2 int=2 int=3 int=3 int=4 int=4|int=3 int=2 int=3 int=3 int=4 int=3|int=3 int=2 int=3 int=3 int=4 int=4|int=4 int=2 int=3 int=3 int=4 int=4

    以下程序运行后的输出结果是。 #define PR(int) printf("int=%d\n",int) main { int x=1,y=1,z=1; x+=y+=z; PR(x<y?x:y); PR(x<y?x++:y++); PR(x); PR(y); PR(z+=x<y?x++:y++); PR(y); }: int=2 int=2 int=3 int=3 int=4 int=4|int=3 int=2 int=3 int=3 int=4 int=3|int=3 int=2 int=3 int=3 int=4 int=4|int=4 int=2 int=3 int=3 int=4 int=4

  • 2022-06-07 问题

    下面关于 java 中的数组,使用错误的是 ()。 A: int x[] = new int[]{1, 2, 3, 4}; B: int x[] = new int[4]; C: int[] x; x={1, 2, 3, 4}; D: int[] x = {1, 2, 3, 4};

    下面关于 java 中的数组,使用错误的是 ()。 A: int x[] = new int[]{1, 2, 3, 4}; B: int x[] = new int[4]; C: int[] x; x={1, 2, 3, 4}; D: int[] x = {1, 2, 3, 4};

  • 2022-06-12 问题

    如下C程序的输出是什么?#include &#91;stdio.h&#93;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

    如下C程序的输出是什么?#include &#91;stdio.h&#93;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

  • 2021-04-14 问题

    以下错误的定义语句是( )。? int; x[2][3]={1,2,3,4};|int; x[4 ][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};;|int; x[3][3]={{0},{1},{1,2,3}};;|int; x[4 ][ ]={{1,2,3,},{1,2,3},{1,2,3},{1,2,3}};;

    以下错误的定义语句是( )。? int; x[2][3]={1,2,3,4};|int; x[4 ][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};;|int; x[3][3]={{0},{1},{1,2,3}};;|int; x[4 ][ ]={{1,2,3,},{1,2,3},{1,2,3},{1,2,3}};;

  • 2022-06-12 问题

    以下程序的输出结果是( )。main(){ int x=1,y=2; void swap(int x,int y); swap(x,y); printf("x=%d,y=%d\n",x,y);}void swap(int x,int y){ x=3,y=4;} A: x=3,y=4 B: x=1,y=2 C: x=3 y=4 D: x=1 y=2

    以下程序的输出结果是( )。main(){ int x=1,y=2; void swap(int x,int y); swap(x,y); printf("x=%d,y=%d\n",x,y);}void swap(int x,int y){ x=3,y=4;} A: x=3,y=4 B: x=1,y=2 C: x=3 y=4 D: x=1 y=2

  • 2022-06-07 问题

    4、下面初始化数组语句()是不正确的。 A: int x[] = {1,2,3}; B: int x[3] = {1,2,3}; C: int[] x = {1,2,3}; D: int x[] = new int[]{1,2,3};

    4、下面初始化数组语句()是不正确的。 A: int x[] = {1,2,3}; B: int x[3] = {1,2,3}; C: int[] x = {1,2,3}; D: int x[] = new int[]{1,2,3};

  • 2022-07-24 问题

    4、下面初始化数组语句()是不正确的。 A: int x[] = {1,2,3}; B: int x[3] = {1,2,3}; C: int[] x = {1,2,3}; D: int x[] = new int[]{1,2,3};

    4、下面初始化数组语句()是不正确的。 A: int x[] = {1,2,3}; B: int x[3] = {1,2,3}; C: int[] x = {1,2,3}; D: int x[] = new int[]{1,2,3};

  • 2022-07-02 问题

    4、下面初始化数组语句()是不正确的。 A: int x[] = {1,2,3}; B: int x[3] = {1,2,3}; C: int[] x = {1,2,3}; D: int x[] = new int[]{1,2,3};

    4、下面初始化数组语句()是不正确的。 A: int x[] = {1,2,3}; B: int x[3] = {1,2,3}; C: int[] x = {1,2,3}; D: int x[] = new int[]{1,2,3};

  • 2022-07-25 问题

    以下错误的定义语句是( )。 A: int x[3][3]={{0},{1},{1,2,3}}; B: int x[4 ][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}}; C: int x[4 ][ ]={{1,2,3,},{1,2,3},{1,2,3},{1,2,3}}; D: int x[2][3]={1,2,3,4};

    以下错误的定义语句是( )。 A: int x[3][3]={{0},{1},{1,2,3}}; B: int x[4 ][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}}; C: int x[4 ][ ]={{1,2,3,},{1,2,3},{1,2,3},{1,2,3}}; D: int x[2][3]={1,2,3,4};

  • 2022-06-09 问题

    以下设置默认值的函数原型声明中错误的是 。 A: int add(int x , int y = 4 , int z ); B: int add(int x = 3 , int y = 4 ,int z = 5 ); C: int add(int x , int y , int z = 5); D: int add(int x , int y = 4 , int z = 5);

    以下设置默认值的函数原型声明中错误的是 。 A: int add(int x , int y = 4 , int z ); B: int add(int x = 3 , int y = 4 ,int z = 5 ); C: int add(int x , int y , int z = 5); D: int add(int x , int y = 4 , int z = 5);

  • 1 2 3 4 5 6 7 8 9 10