Why preincrement operator is faster than postincrement?
Answer Posted / shakti singh khinchi
Because post increment operator uses a temporary variable to
store the incremented value for a variable until it is used
in the next executed statement, whereas pre increment
operator not using any temp variable, it is just increase
that value at the time of execution using reference.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is meant by a delegate?
Define upcasting.
Do you know what is overriding?
In a function declaration what does extern means?
What is the difference between an array and a list?
What is function overloading c++?
What are c++ redistributables?
Explain linked list using c++ with an example?
What is split a string in c++?
What can I use instead of namespace std?
What is type of 'this' pointer? Explain when it is get created?
What it is and how it might be called (2 methods).
What is the difference between a declaration and a definition?
Why cstdlib is used in c++?
How is data hiding achieved in c++?