ProgrammingModerate

printf("%d", 20 / 6 * 6 + 20 % 6); What is printed?

  1. A. 18
  2. B. 20
  3. C. 22
  4. D. 24

Correct answer: B. 20

The expression always gives back the dividend, since (20 / 6) * 6 + 20 % 6 = 20.

More C Programming questions

Exams that ask this topic