网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列数组的定义中,会产生错误的是
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}};
热门标签
最新试卷