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