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

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

1.C++ doesn’t allow both operators to be overloaded in a class

2. A postfix ++ has a dummy parameter

3.A prefix ++ has a dummy parameter

4.By making prefix ++ as a global function and postfix as a member function.

Posted Date:-2022-07-04 03:39:36


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!