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 4 types of library?
What is jump statement in C++?
Give 10 points of differences between C & C++.
What is object in c++ example?
Why was c++ created?
What c++ library is string in?
Can union be self referenced?
What are the various operations performed on stack?
How to get the current position of the file pointer?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
Why do we use string in c++?
What is the real purpose of class – to export data?
What are the new features that iso/ansi c++ has added to original c++ specifications?
How can an improvement in the quality of software be done by try/catch/throw?
What is c++ course?