下列代码的执行结果是: int numbers[]=new int[6]; for(int i=1;i<numbers.length;i++){ numbers[i] = i-1; System.out.print(numbers[i]+" "); }
A.0 1 2 3 4 5 B.1 2 3 4 5 6 C.0 1 2 3 4 D.1 2 3 4 5正确答案C
下列代码的执行结果是: int numbers[]=new int[6]; for(int i=1;i<numbers.length;i++){ numbers[i] = i-1; System.out.print(numbers[i]+" "); }
A.0 1 2 3 4 5 B.1 2 3 4 5 6 C.0 1 2 3 4 D.1 2 3 4 5正确答案C