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
Define copy constructor.
Explain the properties and principles of oop.
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What are the differences between new and malloc?
What is private inheritance?
What is prototype in c++ with example?
Define macro.
Why is polymorphism useful?
What does catch(…) mean?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
How would you obtain segment and offset addresses from a far address of a memory location?
What is a float in c++?
Why do we use using namespace std in c++?
What is c++ try block?
What are the basics of local (auto) objects?