+ 1
What is Unary binary and trynary
3 Answers
+ 2
If you were talking about operators, then:
Unary: Operators that requires only one operand to work. The operand is usually placed on right hand side of the operator.
Binary: Operators that requires two operands to work. One on left hand, and another one on the right hand side of the operator.
Ternary: Operators that requires three operands to work. So far I only know this one:
`<expression> ? <true-block> : <false-block>`
Which behaves like a shorthand for `if` statement.
if(<expression>)
<true-block>
else
<false-block>
Search the net for details on each operator type, and examples đ
Hth, cmiiw
+ 1
Operators: Unary +1, -x
Binary x+y, 5Ă3
Ternary a? x:y
0
ternary