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
Computer Science,
7 months ago
History,
7 months ago
Math,
1 year ago
Science,
1 year ago
Science,
1 year ago