Home » C++ Programming » Data Types » Question
  1. Which of these expressions will make the rightmost set bit zero in an input integer p?
    1. p = p | (p+1)
    2. p = p | (p-1)
    3. p = p & (p+1)
    4. p = p & (p-1)
    5. None of these
Correct Option: D

p = p & (p-1)



Your comments will be displayed only after manual approval.