下列数组的定义中,会产生错误的是A.int a[]=('0','1','2','3','4','5','6');B.int a[10]={0,1,2,3,4,5,6};C.char a[5]="hello";D.char a[5]={'h','e','1','1','o'};
下列数组的定义中,会产生错误的是
A.int a[]=('0','1','2','3','4','5','6');
B.int a[10]={0,1,2,3,4,5,6};
C.char a[5]="hello";
D.char a[5]={'h','e','1','1','o'};
相关考题:
下列数组的定义中,会产生错误的是A.int a[]={'0','1','2','3','4','5','6');B.int a[10]={0,1,2,3,4,5,6};C.char a[5]="hello";D.char a[5]={'h','e','r','l','o'};
下列数组的定义中,会产生错误的是( )。A.int a[]={'0','1','2','3','4','5','6'};B.int a[10]={0,1,2,3,4,5,6};C.char a[5]="hello";D.char a[5]={'h','e','l','l','o'};
下列数组的定义中,会产生错误的是A.int a[]={'0','1','2','3','4','5','6'};B.int a[10]={0,1,2,3,4,5,6};C.char a[5]="hello";D.char a[5]={'h','e','l','l','o'};
下列数组的定义中,会产生错误的是( )。A.int a[]={'0','1','2','3','4','5','6'};B.int a[10]={0,1,2,3,4,5,6};C.char a[5]="hello";D.char a[5]={'h','e','l','l','o'};
下列数组的定义中,会产生错误的是( )。A.int a[]={'0','1','2','3','4','5','6'};B.int a [10]={0,1,2,3,4,5,6};C.char a[5]="hello";D.char a[5]={'h','e','1','1','o'};
下列数组初始化语句哪些是正确的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}};
【多选题】下列数组初始化语句哪些是正确的?(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[][]arr = new int[][2];B.int[][]arr = new int[1][2];C.int[][]arr = new int[2][];D.int[][]arr = {{1},{2,3},{4,5,6}};