ProgrammingModerate

What is the number of trailing zero bits in 40 (binary 101000)?

  1. A. 2
  2. B. 4
  3. C. 3
  4. D. 5

Correct answer: C. 3

40 = 8 x 5, so the lowest set bit is bit 3 and there are three trailing zeros.

More C Programming questions

Exams that ask this topic