Unary Expressions

Unary expressions use a single operator to operate on a single operand.

Details

Details are as follows:

Examples

Unary operators and sample expressions are as follows:

Unary Expressions Examples
+ +x
- -x
++ ++x
-- --x
! !x
[ ] x[2]