Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

1074


Can we override main method?

1198


What is the difference between a constructor and a destructor?

1253


How many human genes are polymorphic?

1058


Can we have inheritance without polymorphism?

1021


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!!!)

2101


Is data hiding and abstraction same?

1016


what's the basic's in dot net

2177


What is an advantage of polymorphism?

1092


What is the full form of oops?

1180


Is abstract thinking intelligence?

1046


How oops is better than procedural?

1090


can inline function declare in private part of class?

4403


Why do while loop is used?

1028


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

2612