Home » C++ Programming » Functions » Question
  1. What are the two advantage of function objects than the function call?
    1. Garbage value
    2. It contains a state
    3. It is a type
    4. It contains a state & It is a type
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.