ProgrammingVery hardGATE CS · Campus placements

uint32_t r = 2147483648u % 1000u; What is r?

  1. A. 483
  2. B. 147
  3. C. 648
  4. D. 0

Correct answer: C. 648

2^31 = 2147483648 fits in uint32_t, and its last three digits are 648. The remainder is therefore 648.

More C Programming questions

Exams that ask this topic