1.

How many arguments will the subscript operator will take for overloading?(a) 1(b) 2(c) 0(d) as many as possibleThis question was addressed to me in my homework.I'm obligated to ask this question of Subscripting in portion Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Correct choice is (a) 1

Easiest explanation - The SUBSCRIPT OPERATOR overload TAKES only ONE argument, but it can be of any type.



Discussion

No Comment Found

Related InterviewSolutions