Postfix/Prefix increment operator
int c = 1;
Console.WriteLine(++c); // outputs 2, c is incremented to 2
Console.WriteLine(c++); // outputs 2 as well, but c is incremented to 3
Console.WriteLine(c); // outputs 3PreviousThe Absolute Minimum about UnicodeNextHow A Typo Screwed Up One Of History's Worst Video Games
Last updated