Even More Operators
Even More Operators
To increment or decrement a variable by 1, use the ++ and -- operators.
A++, increments A by 1
B--, decrements B by 1
All assignment expressions have a value, so A = B = C = D = 1, sets A, B, C, and D to 1.
Previous slide
Next slide
Back to the first slide
View Graphic Version