Kizspy Question: 34
(Choose 1 answer)
RUBBERZ..JM.COM
What is the output of the following code snippet:
int i=0;
int list={1,2,3,4,5};
do{
list[i]+=++i;
while(i<4);
System.out.println(list[0]+ list[list.length]);
A. The program will raise an exception.
B. 5
C. 1
D. 6