Which is faster post increment or pre increment ? and in
which cases should u use either - to increase speed?
Answer Posted / mms zubeir
The above answer seems to be correct but for normal cases
also the behavior is as explained, it is not only for
overloaded case.
A little deeper, since a temporary object is introduced to
swap older and newer values, extra copying is required
which swallow its own CPU time. So the post increment
operator is a bit slower.
But this difference is feeble.
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
Why is oop better than procedural?
Can we override main method?
What is the difference between a constructor and a destructor?
How many human genes are polymorphic?
Can we have inheritance without polymorphism?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Is data hiding and abstraction same?
what's the basic's in dot net
What is an advantage of polymorphism?
What is the full form of oops?
Is abstract thinking intelligence?
How oops is better than procedural?
can inline function declare in private part of class?
Why do while loop is used?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box