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
Write about the retrieval of n number of objects during the process of delete[]p?
What is the difference between reference and pointer?
What is c++ manipulator?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Why do we need c++?
What is the cout in c++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
what is a class? Explain with an example.
Explain the difference between overloading and overriding?
Can we sort map in c++?
What does ctime() do?
Specify some guidelines that should be followed while overloading operators?
Define vptr.
Is swift faster than c++?
Define basic type of variable used for a different condition in C++?