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?
What is object in oops?
What are the 4 pillars of oop?
What is overriding in oops?
What is destructor example?
can we make game by using c
What is polymorphism and why is it important?
What is class and object in oops?
What is object in oop?
is there any choice in opting subjects like 4 out of 7
What is class encapsulation?
What is cohesion in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
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?
i got a backdoor offer in process global,Bangalore..Can i work with it?