Unary Operators

CLight includes the following unary operators:

SymbolName

++ --

Postfix increment and decrement operators

Syntax

unary-operator: ++ --

Example

i++;
i--;

The following lines of code increase the value of the variable i by 1, then decreases it by 1.

Last updated