1.

Which of te following is a built-in example of functors in C++?(a) mltiplication f(a1, a2);(b) add f(a1, a2);(c) subtract f(a1, a2);(d) plus f(a1, a2);I had been asked this question in my homework.I'm obligated to ask this question of Functors topic in portion Algorithms, Objects & Iterators in C++ of C++

Answer» RIGHT choice is (d) PLUS F(A1, a2);

The BEST explanation: plus f(a1, a2); is one of the correct in-built functor available.


Discussion

No Comment Found

Related InterviewSolutions