Why preincrement operator is faster than postincrement?
Answer Posted / ranjeet garodia
Pre increment operator is use the concept of value by
reference that means it increment the actual object.
While post increment use call by value concept that is it
create the local object, operate on that, then it will
increment actual object, so takes time to create local
object
Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
What is the main purpose of overloading operators?
What are c++ templates used for?
When do we run a shell in the unix system?
How a macro differs from a template?
What is dynamic and static typing?
Name the operators that cannot be overloaded in C++?
Can a class be static in c++?
What does return 0 do in c++?
What is the main use of c++?
What is the use of default constructor?
What does asterisk mean in c++?
What is a tree in c++?
Describe public access specifiers?
Differentiate between a template class and class template in c++?
Can we use this pointer in a class specific, operator-overloading function for new operator?