以下定义数组的语句错误的是( )。A.int num[]={1,2,3,4,5,6};B.int num[][3]={{1,2},3,4,5,6};C.int num[2][4]={{1,2},{3,4},{5,6}};D.int num[][4]={1,2,3,4,5,6};
以下定义数组的语句错误的是( )。
A.int num[]={1,2,3,4,5,6};
B.int num[][3]={{1,2},3,4,5,6};
C.int num[2][4]={{1,2},{3,4},{5,6}};
D.int num[][4]={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[] 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[] nums = new int[]{0,1,2,3,4}B.int[] nums2 = {0,1,2,3,4,5}C.int[][] num_1 = {new int[]{0,1},new int[]{0,1,2},new int[]{0,1,2,3}}D.int[][] num_2 = {{0,1},{0,1,2},{0,1,2,3}}
下列数组初始化语句哪些是正确的A.int[] nums = new int[]{0,1,2,3,4};B.int[] nums2 = {0,1,2,3,4,5};C.int[][] num_1 = {new int[]{0,1},new int[]{0,1,2},new int[]{0,1,2,3}};D.int[][] num_2 = {{0,1},{0,1,2},{0,1,2,3}};
不能定义长度为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};
【多选题】下列数组初始化语句哪些是正确的?(2 分)A.int[] nums = new int[]{0,1,2,3,4};B.int[] nums2 = {0,1,2,3,4,5};C.int[][] num_1 = {new int[]{0,1},new int[]{0,1,2},new int[]{0,1,2,3}};D.int[][] num_2 = {{0,1},{0,1,2},{0,1,2,3}};
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.int[ ][ ]num=new int[ ][3];B.int[ ][ ]num=new int[3][ ];C.int[ 3] num;D.int[3][ ]num;
var_dump()函数用于查看变量的值和数据类型。分析以下代码,输出结果正确的是()。 <?php $num = 1234; var_dump($num); ?>A.int(4)"1234"B.int(3)"1234"C.int(1234)D.1234