1.

Which of the following operators are overloaded for functors?(a) [](b) ()(c) This question was addressed to me in an interview for internship.My question is from Functors in division Algorithms, Objects & Iterators in C++ of C++

Answer»

Right ANSWER is (B) ()

The explanation is: () operator is overloaded to use functor PROPERTY in a C++ PROGRAM because this is the only operator used for a function call.



Discussion

No Comment Found

Related InterviewSolutions