Question PSC-BIT-0066
HardWhat does the following pseudocode print?
Integer a[7] = {4, 1, 2, 1, 2, 4, 9}
Integer r = 0, i
for (each i from 0 to 6)
r = r ^ a[i]
end for
Print r, r ^ 9
- A.
0 9
- B.
23 14
- C.
Sign up free to see the answer and a step-by-step explanation.