Professional Documents
Culture Documents
Increment and Decrement Operators
Increment and Decrement Operators
1. The operator which increases the value of a variable by one (1) is known as
increment operator(++).
2. The operator which decreases the value of a variable by one (1) is blown as
decrement operator(--).
Syntax (Increment operator)
• + + variable;
(This is known as Pre-Fix increment operation where value of the variable, first
increased by 1 then used.)
• variable + +;
(This is known as Post-Fix increment operation where the value of the
variable first used then increased by 1 and this new value will be used further
operations.)