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

int Addition Overflows and Wraps

C# code walkthrough · Question 50
hardCasting

Code

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

Your answer