CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Character Arithmetic

C code walkthrough · Question 6
mediumPrinting

Code

Read carefully. What does this print?
1#include <stdio.h>
2 
3int main() {
4 char c = 'A';
5 printf("%c\n", c + 1);
6 printf("%d\n", c);
7 printf("%c\n", c + 32);
8 return 0;
9}

Your answer