Augmented assignment
by gowtham[ Edit ] 2010-02-15 10:13:36
Augmented assignment is the name given to certain operators in certain programming languages (especially those derived from C). An augmented assignment is generally used to replace a statement where an operator takes a variable as one of its arguments and then assigns the result back to the same variable.
For example, the following statement or some variation of it can be found in many programs:
x = x + 1