One of the most used operations in programming is incrementing a variable’s value. Incrementing operator is composed of two plus signs: ++ (and has two forms), or a variation of the following two operators: += and =+.
Lets consider the following example:
1 |
variable = variable + 1; |
In the above example, we are assigning a variable the result of adding 1 to its own value.… Read more