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

Character Arithmetic

C++ code walkthrough · Question 24
mediumCasting

Code

Read carefully. What does this print?
1#include <iostream>
2using namespace std;
3int main() {
4 char c = 'A' + 4;
5 cout << c << " " << (int)c << endl;
6 return 0;
7}

Your answer