What is the difference between unary and ternary operator?
Answers
Answered by
3
unary operator - deals with one operand
eg -
unary + :-
a = +4
ternary operator- deals with three operands
e.g. ?: - conditional assignment operator
eg -
unary + :-
a = +4
ternary operator- deals with three operands
e.g. ?: - conditional assignment operator
Similar questions