ProgrammingModerate

What is the first printed value of this loop? for (int i = 3; i > 0; i--) printf("%d", i);

  1. A. 321
  2. B. 123
  3. C. 3
  4. D. 32

Correct answer: A. 321

The loop runs with i = 3, 2, 1, so the digits print in decreasing order.

More C Programming questions

Exams that ask this topic