adplus-dvertising
frame-decoration

Question

What are the two advantage of function objects than the function call?

a.

It contains a state

b.

It is a type

c.

It contains a state & It is a type

d.

None of the mentioned

Answer: (c).It contains a state & It is a type

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What are the two advantage of function objects than the function call?

Similar Questions

Discover Related MCQs

Q. Which header is need to be used with function objects?

Q. Which are instances of a class with member function operator() when it is

Q. How many parameters does a operator() in a function object shoud take?

Q. How does a sequence of objects are accessed in c++?

Q. How many parameters are present in mismatch method in non-sequence modifying algorithm?

Q. What will happen in ‘all_of’ method if the range is empty?

Q. To what kind of elements does non-modifying sequence algorithm can be applied?

Q. Pick out the incorrect method in non-modifying sequence algorithm?

Q. What is the use of middle parameter in rotate method?

Q. What kind of object is modifying sequence algorithm?

Q. How the sequence of objects can be accessed?

Q. How many kind of operation can be applied to transform method in c++?

Q. What operator is used to remove the dupplicates in the range?

Q. What is meant by sequence point?

Q. Pick out the correct statement about sequence point.

Q. In sequence point, how will the overloaded operators behave like?

Q. What do input and output objects support?

Q. What kind of execution does sequence point allow?

Q. When does the next sequence point start?

Q. What is meant by heap?