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
0
Answer:a 12345678
Explanation:
Similar questions
Accountancy,
20 days ago
History,
20 days ago
Computer Science,
20 days ago
English,
1 month ago
English,
1 month ago
English,
8 months ago
Physics,
8 months ago
Math,
8 months ago