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