Sail E0 Webinar
Question

Which of these expressions will make the rightmost set bit zero in an input integer x?


Options:
A .  x = x | (x-1)
B .  x = x & (x-1)
C .  x = x | (x+1)
D .  x = x & (x+1)
Answer: Option B

None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers