ProgrammingHard

What is the value of x & (x - 1) for x = 0b10110100 in binary as a decimal?

  1. A. 176
  2. B. 180
  3. C. 132
  4. D. 128

Correct answer: A. 176

The expression clears the lowest set bit, bit 2, leaving 0b10110000 = 176.

More C Programming questions

Exams that ask this topic