Augmented assignment

by gowtham 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

Tagged in:

999
like
0
dislike
0
mail
flag

You must LOGIN to add comments