Computers and Technology
Computers and Technology, 05.11.2019 22:31, Ruby2480

8. what is output by the code segment below?
int [] x = {1,2,3,4,5};
int [] y = new int [5] ;
for (int i : x)
y = x;
for (int i : y)
system. out. print (i + " ");
a.
b.
c.
d.
e.
5 4 3 2 1
1 2 3 4 5
2 3 4 5 1
5 1 2 3 4
0 0 0 0 0

answer
Answers: 1

Similar questions

Do you know the correct answer?
8. what is output by the code segment below?
int [] x = {1,2,3,4,5};
int [] y = new in...

Questions in other subjects: