Terminology
- Unary Operators:
- It operates on a single target.
- It appears immediately before their target or post their target
- Binary Operators:
- It operates on two targets
- It appears in between two targets.
- Ternary Operators
- It operates on three targets
- In Swift, it has only one ternary operator.
Example: a ? b: c
No comments:
Post a Comment