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

Post-Increment vs Pre-Increment

C# code walkthrough · Question 11
mediumOperators

Code

Read carefully. What does this print?
1int a = 5;
2int b = a++;
3int c = ++a;
4Console.WriteLine($"{a} {b} {c}");

Your answer