![]() |
![]() |
Increment and decrement operationsIncrement and decrement operations |
||||
These two operators work only on numeric operands. The syntax is: <target>++ <target>-- ++ increments <target> by one, -- decrements <target> by one. These are equivalent to += 1 and -= 1. <target> must be an existing variable and contain an integer value. If <target> contains a real value then the real is truncated to the nearest integer and then incremented or decremented. |
||||
Examples | ||||
|