Discussion Forum : Integer Types
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 Your Solution hear:

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