Difference between unary binary and ternary operators in c++
Answers
Answered by
2
Unary '-' : It is used with a single operand
and that is why it is an unary operator . ...
Binary '-' : This operator functions upon two
operands and returns the difference between
the two by subtracting the value of second
operand from the first. Both the operands
may have float or integer types.
and that is why it is an unary operator . ...
Binary '-' : This operator functions upon two
operands and returns the difference between
the two by subtracting the value of second
operand from the first. Both the operands
may have float or integer types.
Similar questions