若定义数组int a[]={1,2,3,4,5,6};则此数组元素a[a[2]]的值为___百度...答:int a[]={1,2,3,4,5,6};值: 1 2 3 4 5 6 下标: 0 1 2 3 4 5 计算a[a[2]],分两步,先计算a[2]那么a[2]对应的值是3,接着,计算a[3]=4 答案就是4了 实际上你可以看成是,int temp = a[2]; 然后求 a[temp];...
用java定义一个一维整型数组array={1,2,3,4,5,6,7,8,9,10},输出该数组...答:public class Test{ public static void main(String args[]){ int score[] = null ;score = new int[10] ;for(int i = 0 ; i < score.length ; i++){ score[i] = i ;} int max , min , sum ;max = score[0] ;min = score[0] ;sum = 0 ;for(int i = 0 ; i < ...