Operators
n
unary (monadic) operators
:
involves manipulation of one value.
n
Affixing ‘+’ or ‘-’ can be considered
a unary operator. Affixing the ‘+’
does nothing.
Affixing the ‘-’
negates the value.
n
Example: If
a = 5 and b =-4
n
+a = 5, -a =-5, +b =-4, -b = 4