ProgrammingHardGATE CS · Campus placements

What does printf("%d", (4, 5) * 2) print?

  1. A. 10
  2. B. 8
  3. C. 9
  4. D. 5

Correct answer: A. 10

In a comma expression the left operand is evaluated and discarded, so (4, 5) yields 5. Multiplying by 2 gives 10.

More C Programming questions

Exams that ask this topic