ProgrammingModerate

printf("%d", 2 * 3 % 5); What is printed?

  1. A. 0
  2. B. 3
  3. C. 1
  4. D. 2

Correct answer: C. 1

* and % are at the same level and group left to right, so (2 * 3) % 5 = 1.

More C Programming questions

Exams that ask this topic