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

Post-Increment vs Pre-Increment

mediumOperators

📄 Code

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

🎯 Your Answer