DocumentationMathematicaBuilt-in FunctionsProgrammingAssignments
PreIncrement
++x increases the value of x by 1, returning the new value of x.
PreIncrement has attribute HoldFirst. ++x is equivalent to x=x+1. See Section 2.5.4. See also: Increment, AddTo, Set. New in Version 1.
Further Examples