Question PSC-BIT-0061
HardWhat does the following pseudocode print?
Integer n = 0, i
for (each i from 0 to 7)
if (i mod 3 == 0)
n = n | (1 << i)
end if
end for
Print n, n & (n - 1)
- A.
73 73
- B.
9 8
- C.
73 64
- D.
73 72
Sign up free to see the answer and a step-by-step explanation.