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


Please Help Members By Posting Answers For Below Questions

Why is oop better than procedural?

596


What is object in oops?

602


What are the 4 pillars of oop?

658


What is overriding in oops?

592


What is destructor example?

584






can we make game by using c

3403


What is polymorphism and why is it important?

546


What is class and object in oops?

602


What is object in oop?

668


is there any choice in opting subjects like 4 out of 7

1721


What is class encapsulation?

580


What is cohesion in oop?

606


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2022


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1623


i got a backdoor offer in process global,Bangalore..Can i work with it?

2314