ProgrammingModerate

char c = 'A'; printf("%d %c", c + 1, c + 1); What is printed?

  1. A. 66 B
  2. B. 65 A
  3. C. 66 66
  4. D. B B

Correct answer: A. 66 B

c + 1 is the int 66, which prints as 66, and %c prints the same value as the character B.

More C Programming questions

Exams that ask this topic