1.

What is operator overloading in C++?(a) Overriding the operator meaning by the user defined meaning for user defined data type(b) Redefining the way operator works for user defined types(c) Ability to provide the operators with some special meaning for user defined data type(d) All of the mentionedThe question was asked during an internship interview.The above asked question is from Operator Overloading in section Source Files, Classes and Operator Overloading in C++ of C++

Answer» CORRECT answer is (d) All of the mentioned

Explanation: Operator overloading helps programmer to GIVE his/her own meaning to an operator for user defined DATA types(eg, CLASSES).


Discussion

No Comment Found

Related InterviewSolutions