ProgrammingModerate

int m = 2147483647; printf("%d", m / 2); What is printed with a 32-bit int?

  1. A. 1073741824
  2. B. 1073741823
  3. C. 2147483647
  4. D. 0

Correct answer: B. 1073741823

INT_MAX is 2147483647, and integer division by 2 truncates to 1073741823.

More C Programming questions

Exams that ask this topic