Which of the following are TRUE about operator overloading in C++?
(A) Any operator can be overloaded.

(B) Operator overloading allows defining custom behavior for operators with user-defined types.

(C) Overloaded operators can have different precedence than their built-in counterparts.

(D) Operator overloading can be done using either member functions or friend functions.

Choose the correct answer from the options given below:

1
(A), (B), (C) Only
2
(B), (C), (D) Only
3
(A), (B), (D) Only
4
(B), (D) Only

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation