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
What is class encapsulation?
What are two types of polymorphism?
What are the 5 oop principles?
Can you explain polymorphism?
Why is object oriented programming so hard?
What are main features of oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What are oops methods? any one please tell me the purpose of operator overloading
How do you define social class? What is polymorphism and example? Why interface is used? What are the advantages of polymorphism? What is constructor overloading in oop? How to handle exception in c++,
For example in a functions i am assigning memory to some
variables and also in next instructions in am dividing one
variable also.
If this functions generates a error while allocating memory
to those variable and also while dividing the variable if i
divide by zero then catch block how it will identify that
this error has cone from perticular instruction