1.

In the case of friend operator overloaded functions how many maximum object arguments a unary operator overloaded function can take?(a) 1(b) 2(c) 3(d) 0This question was addressed to me by my school principal while I was bunking the class.Enquiry is from Operator Overloading in chapter Source Files, Classes and Operator Overloading in C++ of C++

Answer»

The correct choice is (a) 1

Easy explanation - In the CASE of friend OPERATOR overloaded functions UNARY operator overloaded function should take MAXIMUM one object argument only.



Discussion

No Comment Found

Related InterviewSolutions