下列定义数组的语句中不正确的是().A、static int a[2][3]={1,2,3,4,5,6};B、static int a[2][3]={{1},{4,5}};C、static int a[][3]={{1},{4}};D、static int a[][]={{1,2,3},{4,5,6}};

下列定义数组的语句中不正确的是().

  • A、static int a[2][3]={1,2,3,4,5,6};
  • B、static int a[2][3]={{1},{4,5}};
  • C、static int a[][3]={{1},{4}};
  • D、static int a[][]={{1,2,3},{4,5,6}};

相关考题:

下列二维数组初始化语句中,正确且与语句int a[][3]={1,2,3,4,5}等价的是( )。A.int a[2][]={{1,2,3},{4,5}};B.int a[][3]={1,2,3,4,5,0};C.int a[][3]={{1,0},{2,0},{3,0}};D.int a[2][]={{1,2,3},{4,5,6}};

( 22 )有如下头文件:int fl();static int f2();class MA{public:int f3();static int f4();} ;在所描述的函数中,具有隐含的 this 指针的是A ) f1B ) f2C ) f3D ) f4

有如下头文件: int f1(); static int f2(); class MA{ public: int f3(); static int f4(); };在所描述的函数中,具有隐含的this指针的是A.f1B.f2C.f3D.f4

下列语句中,不正确的是______。A.static int a[2][3]={1,2,3,4,5,6};B.static int a[2][3]={{1},{4,5}};C.static int a [][3]={{1},{4}};D.static int a [][]={{1,2,3},{4,5,6}};

根据变量定义“static int x[5],y[2][3]={9,6,3,1,4,7};”,x[4]=【 】,y[1][2]=【 】。

Which two code fragments correctly create and initialize a static array of int elements() A.static final int[]a={100,200};B.static final int[]a;static{a=new int[2];a[0]=100;a[1]=200;}C.static final int[]a=new int[2]{100,200};D.static final int[]a;static void int(){a=new int[3];a[0]=100;a[1]=200;}

下面语句中不能定义一个数组,元素值依次分别为1,1,1,0,0的是______。A.static int a[5]={1,1,1,0,0};B.static int a[5]={1,1,1};C.static int a[]={1,1,1,0,0};D.static int a[5]={1*2,0*3};

有以下程序: int a=2; int f(int n) { static int a=3; int t=0; if(n % 2)(static int a=4; t+=a++;} else{static int a=5; t+=a++;} return t+a++; } matin() { int s=a, i; for(i=0; i<3; i++)s+=f(i); printf("% d\n", s); } 程序运行后的输出结果是______。A.26B.28C.29D.24

以下数组定义中错误的是______。A.int x[][3]={0};B.int x[2][3]={{1,2},{3,4},{5,6}};C.int x[][3]={{1,2,3},{4,5,6}};D.int x[][3]={1,2,3,4,5,6};

有如下头文件: int fl; static int f2; class MA{ public: int f3; static int f4; }; 在所描述的函数中,具有隐含的this指针的是( )。A.flB.f2C.f3D.f4

以下数组定义中错误的是( )。A.int x[][3]={0};B.int x[2] [3]={{1,2},{3,4},{5,6}};C.int x[][3]={{1,2,3},{4,5,6}};D.int x[2][3]={1,2,3,4,5,6};

下列数组定义中错误的是( )。A.int x[][3]={0};B.int x[2][3]={{1,2},{3,4},{5,6}};C.int x[][3]={{1,2,3},{4,5,6}};D.int x[2][3]={1,2,3,4,5,6};

下面对二维数组s的初始化语句,正确的是( )。A.int a[2][3]={{1,2},{3,4},{5,6}}B.int a[2][3]={{1,2,3},4,5,6};C.int a[2][]={1,2,3,4,5,6};D.int a[][]={1,2,3,4,5,6};

以下数组定义中错误的是A.int x[][3]={0};B.int x[2][3]={{1,2},{3,4},{5,6}};C.int x[][3]={{1,2,3},{4,5,6}};D.intx[2][3]={1,2,3,4,5,6};

有以下程序: include int a =2;int f(int n){ static int a: 3;intt=0;if(n%2){ stat 有以下程序: #include <stdio, h>int a =2;int f(int n){ static int a: 3; int t=0; if(n%2){ static int a=4;t+ =a++;} else { static int a=5;t+ :a++;} return t + a + +;main ( ){ int s=a,i; for(i=0;i<3;i++)s + =f(i); prinff("% d \n" ,s); }程序运行后的输出结果是( )。A.26B.28C.29D.24

有以下程序 int a=2; int f(int n) { static int a=3; int t=0; if(n%2) {static int a=4; t+=a++;} else {static int a=5; t+=a++;} return t+a++; } main ( ) { int s=a, i; for (i=0;i<3; i++) s+=f (i) print f ("%d\n" , s ); } 程序运行后的输出结果是A.26B.28C.29D.24

下列定义正确的是( )A.static int a[]={1,2,3,4,5}B.int b[]={2,5}C.int a(10)D.int 4e[4]

下列二维数组初始化语句中,正确且与语句int a[][3]={1,2,3,4,5}等价的是( )。A)int a[2][]={{1,2,3},{4,5));B)int a[][3]={1,2,3,4,5,0};C)int a[][3]={{1,0},{2,0},{3,0)};D)int a[2]={{1,2,3),{4,5,6)};

以下能对二维数组a进行正确初始化的语句是( )A.int a[2][]={{1,0,1},{5,2,3}};B.int a[][3]={{1,2,3},{4,5,6}};C.int a[2][4]={{1,2,3},{4,5},{6}};D.int a[][3]={{1,0,1},{},{1,1}};

以下能对二维数组A进行正确初始化的语句是()。A、int a[][3]={{1,2,3},{4,5,6}};B、int a[2][]={{1,0,1},{5,2,3}};C、int a[2][4]={{1,2,3},{4,5},{6}};D、int a[][3]={{1,0,1},{},{1,1}};

以下数组定义中错误的是()A、int x[][3]={0};B、int x[2][3]={{1,2},{3,4},{5,6}};C、int x[][3]={{1,2,3},{4,5,6}};D、int x[2][3]={1,2,3,4,5,6};

Which two code fragments correctly create and initialize a static array of int elements()A、static final int[]a={100,200};B、static final int[]a;static{a=new int[2];a[0]=100;a[1]=200;}C、static final int[]a=new int[2]{100,200};D、static final int[]a;static void int(){a=new int[3];a[0]=100;a[1]=200;}

下列语句中,不能正确定义长度为4的数组a的语句是()A、 int[] a=new int[]{1,2,3,4};B、 int[] a= {1,2,3,4};C、 int[] a=new int[4]{1,2,3};D、 int[] a=new int[4]{1,2,3,4};

Which two code fragments correctly create and initialize a static array of int elements?()A、static final int[] a = { 100,200 };B、static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }C、static final int[] a = new int[2]{ 100,200 };D、static final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }

单选题下列语句中,不能正确定义长度为4的数组a的语句是()A int[] a=new int[]{1,2,3,4};B int[] a= {1,2,3,4};C int[] a=new int[4]{1,2,3};D int[] a=new int[4]{1,2,3,4};

多选题Which two code fragments correctly create and initialize a static array of int elements()Astatic final int[]a={100,200};Bstatic final int[]a;static{a=new int[2];a[0]=100;a[1]=200;}Cstatic final int[]a=new int[2]{100,200};Dstatic final int[]a;static void int(){a=new int[3];a[0]=100;a[1]=200;}

多选题Which two code fragments correctly create and initialize a static array of int elements?()Astatic final int[] a = { 100,200 };Bstatic final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }Cstatic final int[] a = new int[2] { 100,200 };Dstatic final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }