国家开放大学 / JAVA语言程序设计
下列数组的初始化正确的是( )。
int[] score =new int[5];
int[] score = new int[5]{1,2,3,4,5};
int[5] score = new int[]{1,2,3,4,5};
int score = {1,2,3,4,5};
int[] score =new int[5];
int[] score = new int[5]{1,2,3,4,5};
int[5] score = new int[]{1,2,3,4,5};
int score = {1,2,3,4,5};
参考答案:
佳题速递: