CPP MCQ
Which is the correct statement about operator overloading in C++?
A)
Precedence of operators are changed after overlaoding
B)
Associativity and precedence of operators does not change
C)
Only arithmetic operators can be overloaded
D)
Only non-arithmetic operators can be overloaded

Correct Answer : Option (B) :   Associativity and precedence of operators does not change

Explanation : Both arithmetic and non-arithmetic operators can be overloaded. The precedence and associativity of operators remains the same after and before operator overloading.