The Increment and Decrement Operators
If count currently contains 45, then
total = count++;
assigns 45 to total and 46 to count
If count currently contains 45, then
total = ++count;
assigns the value 46 to both total and count
Previous slide
Next slide
Back to first slide
View graphic version