Question PSC-BIT-0016
HardWhat will be the output of the following pseudocode?
Integer a[] = {4, 7, 4, 9, 7}
Integer r = 0
for (each i from 0 to 4)
r = r ^ a[i]
end for
Print r
- A.
9
- B.
4
- C.
7
- D.
0
Sign up free to see the answer and a step-by-step explanation.