ProgrammingHard

unsigned int x = 0xF0F0F0F0u; printf("%u", x >> 28); What is printed?

  1. A. 15
  2. B. 240
  3. C. 16
  4. D. 0

Correct answer: A. 15

The top four bits of 0xF0F0F0F0 are all 1, so shifting right by 28 gives 15.

More C Programming questions

Exams that ask this topic