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 are the iterator and generic algorithms.
What is c++ best used for?
Write about the access privileges in c++ and also mention about its default access level?
What do you mean by static variables?
Why c++ is created?
what is a reference variable in C++?
Explain how an exception handler is defined and invoked in a Program.
Write about c++ storage classes?
What is the use of endl in c++ give an example?
What is a multiset c++?
What are the differences between new and malloc?
What does std mean in c++?
Array base access faster or pointer base access is faster?
what is Loop function? What are different types of Loops?
Describe the advantage of an external iterator.