网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列数组定义中错误的是( )。

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}; ” 相关考题
考题 方程f(x)=x23-11.1x22+38.8x-41.77=0的有根区间为(9)。A.[1,2]B.[3,4]C.[1,2]、[3,4]D.[1,2]、[3,4]、[5,6]

考题 4、下面声明和创建数组的语句错误的是()A.int[] a=new int[12];B.int[] c; c=new int[12];C.int[] n={1,2,3,4,5};D.int[] array = new int[3] {1,2};

考题 下列选项中关于二维数组的定义,格式错误的是A.int[][] arr = new int[3][4]B.int[][] arr = new int[3][]C.int[][] arr = new int[][4]D.int[][] arr = {{1,2},{3,4,5},{6}}

考题 下面声明和创建数组的语句错误的是A.int[] a=new int[12];B.int[] c; c=new int[12];C.int[] n={1,2,3,4,5};D.int[] array = new int[3] {1,2};

考题 不能定义长度为4的数组a的语句是A.int [] a = new int[] {1,2,3,4};B.int [] a = {1,2,3,4};C.int [] a = a[4]{1,2,3,4};D.int [] a = a[4]{1,2};

考题 下列选项中关于二维数组的定义,格式错误的是()A.int[][] arr = new int[3][4]B.int[][] arr = new int[3][]C.int[][] arr = new int[][4]D.int[][] arr = {{1,2},{3,4,5},{6}}

考题 8、下面声明和创建数组的语句错误的是A.int[] a=new int[12];B.int[] c; c=new int[12];C.int[] n={1,2,3,4,5};D.int[] array = new int[3] {1,2};

考题 下面声明和创建数组的语句错误的是()A.int[] a=new int[12];B.int[] c; c=new int[12];C.int[] n={1,2,3,4,5};D.int[] array = new int[3] {1,2};

考题 A={{1,2},{3,4}};A[[2]]=A[[1]];A[[2,1]]=x; A为A.{{1,2},{x,2}}B.{{1,2},{x,4}}C.{{3,4},{x,2}}D.{{3,4},{x,4}}