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