ProgrammingHard

With 16-bit unsigned arithmetic, (65535 x 2) & 0xFFFF is what?

  1. A. 65535
  2. B. 131070
  3. C. 0
  4. D. 65534

Correct answer: D. 65534

The product 131070 is reduced modulo 65536, which gives 65534.

More C Programming questions

Exams that ask this topic