Operators: Unary, Increment, and Decrement
Learn how to work with unary operators and understand the concepts of increment and decrement operators.
We'll cover the following...
Unary prefix operators
A +
, -
, or !
in front of a single value is also an operator. Operators that are used with only a single value are called unary operators.
Points to remember:
Unary operators are used with only a single value (operand).
Operators used with two values are known as binary operators ...