單項選擇題

以下創(chuàng)建數(shù)組的方式錯誤的是()

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;iD.short[][]x={{1,2},{3,4,5},{6,7,8,9}};

微信掃碼免費搜題