C includes a class of operators
that act upon a single operand to produce a new value. Such operators k/a unary
operators. Unary operators usually precede their single operands, though some
unary operators are written after their operands.* There are two other type of unary
operator also available in C:
1. Increment Operator (+ +)
2. Decrement Operator (- - )
The increment operator causes its operand to be
increased by 1 where as the decrement operator causes its operand to be
decreased by 1. The operand used with each of these operators must be a single
variable.
Comments
Post a Comment