Vidyalelo
C++ Programming · Q952

C++ miscellaneous

Programming · C++ Programming · question 952

Q952

Which of the following is correct about Functors?

A.
Functors should not be declared outside the main function
B.
Overloaded operator () function is not a member of the class
C.
Functors should be declared global
D.
Functors have a state
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board