0
What is the difference between unary operator and binary operator?
+
4 Respuestas
+ 8
Unary operators have one operand/value that they work with. Ex: x++ (operand is x)
Binary operators need two operands. Ex: y * 7 (operands are y and 7).
+ 8
Ternary needs 3 operands.
Condition ? action if true : action if false
The condition and two actions are the operands, and ?: is the operator.
0
ternary operator??pls ans
0
thanks