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 do we use oops?
What is variable example?
What is encapsulation in simple terms?
What is encapsulation in oops?
What does it mean when someone says I oop?
Can you explain polymorphism?
What are the two different types of polymorphism?
What are objects in oop?
What is abstraction example?
What is oops with example?
Write a program to reverse a string using recursive function?
write a program that takes input in digits and display the result in words from 1 to 1000
officer say me - i am offered to a smoking , then what can you say
What do you mean by overloading?
What is static in oop?