ProgrammingModerate

printf("%d", (int)'A' + '\x01'); What is printed?

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

Correct answer: C. 66

'A' is 65 and '\x01' is 1, and the addition is performed on ints, giving 66.

More C Programming questions

Exams that ask this topic