Decrement (--) Operator
two things happen:
- The value of the variable x is decreased by 1.
- The value of the expression --x is equal to the new value (original value minus 1).
-
two things happen:
- The value of the variable x is decreased by 1. Same as
--x.
- The value of the expression x-- is equal to the old value (original value of x).