以下创建数组的方式错误的是()
- A、shortx[];x={1,2,3,4,5,6};
- B、shortx[]=newshort[6];x[0]=9;x[1]=8;x[2]=7;x[3]=6;x[4]=5;x[5]=4;
- C、shortx[]=newshort[6];intlen=x.length;for(inti=0;i
- D、short[][]x={{1,2},{3,4,5},{6,7,8,9}};
正确答案:A
答案解析:有

微信扫一扫手机做题
以下创建数组的方式错误的是()
微信扫一扫手机做题