This Exploration introduces the increment (++) operator, which has multiple uses in the C++ language. Not surprising, it has a counterpart to decrement values: --. This Exploration takes a closer look at these operators, which appear so often, they are part of the language name.
I know that you C, Java, etc. programmers have been waiting for this Exploration ever since I wrote i = i + 1 in Exploration 7. As you saw in Exploration 9, the ++ operator means more in C++ than what you’re used to. That’s why I waited until now to discuss it.
Increment
The ++ operator is familiar to C, Java, Perl, ...