Binary Operator
The operator that operates on two operands (data items) is called binary operator. For example, "a + b", the operator '+' operates on two operands 'a' and 'b' . All arithmetic operators, relational operators and two logical operators (&& and || ) are examples or binary operators.
Unary Operator
The operator that operates only on one operand is called unary operator. The examples of unary operators are ++ (increment operator), -- (decrement operator) and logical negation operator (!).
No comments:
Post a Comment
Thanks For Visiting Here...!! I will Reply you as soon as possible.