Question PSC-BIT-0029
EasyWhat will be printed by the following pseudocode?
Integer n = 22, count = 0
while (n > 0)
count = count + (n & 1)
n = n >> 1
end while
Print count
- A.
22
- B.
2
- C.
Sign up free to see the answer and a step-by-step explanation.