What are the two advantage of function objects than the function call?
A. It contains a state.
B. It is a type
C. Both a & b
D. None of the mentioned
Answer:A
What are the two advantage of function objects than the function call?
A. It contains a state. B. It is a type C. Both a & b D. None of the mentioned
Explanation:A function object can contain state. The second is that a function object is a type and therefore can be used as a template parameter.