ProgrammingHard

printf("%d", (3 > 2) > 1); What is printed?

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

Correct answer: C. 0

The first comparison yields 1, and 1 > 1 is false, giving 0.

More C Programming questions

Exams that ask this topic