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 format for defining a structure?
What are advantages of c++?
Is there a c++ certification?
What is the advantage of an external iterator.
Const char *p , char const *p What is the difference between the above two?
Which programming language should I learn first?
Difference between pass by value and pass by reference?
What is the best c++ book for beginners?
Explain the virtual inheritance in c++.
Can I create my own functions in c++?
Can comments be nested?
What are structures and unions?
What is the purpose of templates in c++?
What are advantages of using friend classes?
What is scope in c++ with example?