Question: what is the difference between unary and binary operator?
Answer: Operators act on what's known as operands. An operator can act on one operand, and then it is called a unary operator, or, it can act on two operands and then it is called a binary operator. It can act on more than two operands but we won't go into this now. ... Let's see an example of a binary operator.