ProgrammingVery hard

What is the result of (0xFFu >> 4) | (0x0Fu << 4) & 0xFF?

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

Correct answer: C. 255

The shift and the & bind as written: (0xFF >> 4) = 15 and (0x0F << 4) & 0xFF = 240. Their OR is 255.

More C Programming questions

Exams that ask this topic