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
Describe Trees using C++ with an example.
What are built-in functions? What is the syntax for the definition?
Who made c++?
Explain data encapsulation?
Which bit wise operator is suitable for turning off a particular bit in a number?
What are maps in c++?
Which is better turbo c++ or dev c++?
What is constructor and destructor in c++?
Is nan a c++?
How to declaring variables in c++?
Do class declarations end with a semicolon? Do class method definitions?
What is difference between array and vector in c++?
Why c++ is better than c language?
What is the oldest programming language?
What is a c++ class?