Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

- Unary Minus Operator

Unary minus operator change the sign of the expression.

Syntax:

-exp

The following code fragment illustrates the use of the unary minus operator:

-7       // evaluates to integer number -7