ProgrammingModerate

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

  1. A. a
  2. B. b
  3. C. c
  4. D. 98

Correct answer: B. b

'a' + 1 is 98, which is stored in the char and printed as 'b'.

More C Programming questions

Exams that ask this topic