Q.

How C++ compiler does differ between overloaded postfix and prefix operators?

A. C++ doesn’t allow both operators to be overloaded in a class
B. A postfix ++ has a dummy parameter
C. A prefix ++ has a dummy parameter
D. By making prefix ++ as a global function and postfix as a member function.
Answer» B. A postfix ++ has a dummy parameter
573
0
Do you find this helpful?
6

View all MCQs in

CPP Programming

Discussion

No comments yet