Question PSC-ARR-0071
HardWhat will be the output of the following pseudocode?
Integer a[5] = {1, 2, 3, 4, 5}
Integer b[5], i
for (each i from 0 to 4)
b[(i + 2) mod 5] = a[i]
end for
Print b[0], b[1], b[2]
- A.
1 2 3
- B.
4 5 1
- C.
Sign up free to see the answer and a step-by-step explanation.