Home » C++ Programming » Data Types » Question
  1. Which of these expressions will isolate the rightmost set bit?
    1. p = p & (-p)
    2. p = p ^ (-p)
    3. p = p ^ (~p)
    4. p = p & (~p)
    5. None of these
Correct Option: A

p = p & (-p)



Your comments will be displayed only after manual approval.