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.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs