what is the difference between unary and binary and ternary operator in c?
Unary operators are so-called because they operate on one operand. Binary operators need two operands to operate. In addition to these, there is a ternary operator in C which is also called Conditional operator. ... Unary operators are so-called because they operate on one operand.