Question PSC-BIT-0064
HardWhat will be printed by the following pseudocode?
Integer n = 37, r = 0, i
for (each i from 0 to 7)
r = (r << 1) | ((n >> i) & 1)
end for
Print r
- A.
164
- B.
82
- C.
Sign up free to see the answer and a step-by-step explanation.