Which is the correct statement about operator overloading?
32 views
- ) Only arithmetic operators can be overloaded
- Only non-arithmetic operators can be overloaded
- Precedence of operators are changed after overlaoding
- Associativity and precedence of operators does not change (Correct Answer)
Explanation
Both arithmetic and non-arithmetic operators can be overloaded. The precedence and associativity of operators remains the same after and before operator overloading.