ProgrammingVery hard

printf("%d", 3 > 2 ? 'Y' : 'N'); What is printed?

  1. A. Y
  2. B. N
  3. C. 1
  4. D. 89

Correct answer: D. 89

The conditional operator yields the character 'Y', which promotes to int 89 in a %d conversion.

More C Programming questions

Exams that ask this topic