1.

What are unary functors?(a) Functors that accepts only one parameter(b) Functors that accepts two parameters(c) Functors that accepts more than one parameters(d) Functors that accepts other than a specific type of parameterThis question was posed to me by my school teacher while I was bunking the class.This interesting question is from Functors topic in division Algorithms, Objects & Iterators in C++ of C++

Answer»

Right choice is (a) FUNCTORS that accepts only ONE PARAMETER

For EXPLANATION: Unary functors are those which accepts only one ARGUMENT as a parameter in a functor.



Discussion

No Comment Found

Related InterviewSolutions