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 a multimap c++?
What are the two main components of c++?
How do I download c++?
What are the steps in the development cycle?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What is the difference between method overloading and method overriding in c++?
What does override mean in c++?
List the features of oops in c++?
Where are setjmp and longjmp used in c++?
Describe protected access specifiers?
What is c++ manipulator?
What is a dll entry point?
Are strings mutable in c++?
Write about an iterator class?
What are the various storage classes in C++?