Monday, June 23, 2025 23:00

Posts Tagged ‘incrementing operator’

Incrementing operator

Thursday, January 5th, 2017

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:

variable = variable + 1;

In the above example, we are assigning a variable the result of adding 1 to its own value.… Read more