Tag: Operator

Glossary: Urnary operator

Posted on

Operators that affect a single variable. So the use of – to make a negative number is a urnary operator. Operator Use Description ++ x++ x + 1 ++x — x– x – 1 –x Note that with unary operators you can have post-increment and pre-increment. x++ is post-increment; the number is incremented by 1 […]