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

Char Arithmetic

hardCasting

📄 Code

Read carefully — what does this print?
1char c = 'A';
2c = (char)(c + 3);
3Console.WriteLine(c);
4Console.WriteLine((int)'A');

🎯 Your Answer