Computer Science, asked by rohinithorat1998, 1 month ago

What will be the output of the following program?
public class Test {
public static void main(String args[]) {
int x[ ] = { 1, 2, 3, 4, 5, 6, 7, 8);
int i;
for (i=2;i<6; ++i) {
x[x[i]] = x[i];
}
for (i=0;i<8; ++i) {
System.out.print (x[i]);
}
a. 12335578
b. 12244668
c. 87654321
d. 122344566
What will he the output of the following program?​

Answers

Answered by itzabhi99
0

Answer:a 12345678

Explanation:

Similar questions