Question PSC-BIT-0053
MediumWhat will be printed by the following pseudocode?
Integer a = 6, b = 11, d = a ^ b, c = 0
while (d > 0)
c = c + (d & 1)
d = d >> 1
end while
Print c
- A.
13
- B.
4
- C.
Sign up free to see the answer and a step-by-step explanation.