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

int Addition Overflows and Wraps

hardCasting

📄 Code

Read carefully — what does this print?
1int x = 2_000_000_000;
2int y = x + x;
3Console.WriteLine(y);

🎯 Your Answer

← Previous