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

Char Arithmetic and Casting

mediumCasting

📄 Code

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

🎯 Your Answer