Question-19: Can you please map them
Priority-1: + and – (Unary Operator)
Priority-2 : ** (Exponential)
Priority-3 : *, /, //, %
Priority-4 : + and – (Binary Operator)
Answer:
- Priority-1: + and – (Unary Operator)
- Priority-2 : ** (Exponential)
- Priority-3 : *, /, //, %
- Priority-4 : + and – (Binary Operator)
Exp:
- As you can remember, multiplication has higher priority than addition.
- You should always consider operator binding, when there are same precedence operators.
- Priority-1: + and – (Unary Operator)
- Priority-2 : ** (Exponential)
- Priority-3 : *, /, //, %
- Priority-4 : + and – (Binary Operator)