char[] suit={(char)3, (char)4, (char)5, (char)6};可以换成以下那句
A: char[] suit={3, 4, 5, 6};
B: char[] suit={‘3’, ‘4’, ‘5’, ‘6’};
C: char[] suit={"3", "4", "5", "6"};
D: char[] suit={3.ToString(), 4.ToString(), 5.ToString(), 6.ToString()};
A: char[] suit={3, 4, 5, 6};
B: char[] suit={‘3’, ‘4’, ‘5’, ‘6’};
C: char[] suit={"3", "4", "5", "6"};
D: char[] suit={3.ToString(), 4.ToString(), 5.ToString(), 6.ToString()};
举一反三
- char[] suit={(char)3, (char)4, (char)5, (char)6};可以换成以下那句 A: char[] suit={3, 4, 5, 6}; B: char[] suit={‘3’, ‘4’, ‘5’, ‘6’}; C: char[] suit={"3", "4", "5", "6"}; D: char[] suit={3.ToString(), 4.ToString(), 5.ToString(), 6.ToString()};
- 中国大学MOOC: char[] suit={(char)3, (char)4, (char)5, (char)6};可以换成以下那句
- char b[ ] = {‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’};
- 下列声明二维数组的语句不合法的是() A: char c[][] = new char[2][3]; B: char c[][]=new char[6][]; C: char[][] c= new char[3][3]; D: char [][] c = new char[][4];
- 下列数组的定义不合法的是() A: char c[][]=new char[2][4] B: char c[][]=new char[2][] C: char [][]c=new char[][3] D: int []a[] = new int[5][5]