Explanatory Question
(viii) Consider the following array and answer the questions given below:
int a[ ] = {12,10,8,4,6,2,3,5,7};
(a) What is the output of System.out.print(a[0] + a[5]);?
(b) What is the index (subscript) of the largest element of the array a[ ]?
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.