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