CJCoding With Joseph
← Back to Question List
C++ Code Walkthrough #24

Character Arithmetic

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