Q38.webp
N

Q38.webp

Question: 38
(Choose 1 answer)
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

Thông tin

Category
PRO192
Thêm bởi
NgocHanh90
Ngày thêm
Lượt xem
1,141
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom