+ 1

What is Unary binary and trynary

22nd Oct 2019, 5:07 AM
vishal jenny
vishal jenny - avatar
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
22nd Oct 2019, 6:57 AM
Ipang
+ 1
Operators: Unary +1, -x Binary x+y, 5×3 Ternary a? x:y
22nd Oct 2019, 6:59 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
ternary
22nd Oct 2019, 5:20 AM
ifl
ifl - avatar