skip to main content
Operators : Unary and Binary operators
 

Unary and Binary operators

The two general classes of operators are:
Unary: A unary operator operates on only one operand. A unary operator typically appears with its operand in the following format:
operator operand
Binary: A binary operator operates on two operands. A binary operator appears with its operands in the following format:
operand1 operator operand2
Other operators with special formats accept more than two operands. If an operator is given a null operand, the result is always null. The only operator that does not follow this rule is concatenation (||).