The Increment and Decrement Operators
The increment operator (++) adds one to its integer or floating point operand
The decrement operator (--) subtracts one
The statement
count++;
is essentially equivalent to
count = count + 1;
Previous slide
Next slide
Back to first slide
View graphic version