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 do we use oops?

1024


What is variable example?

1045


What is encapsulation in simple terms?

1042


What is encapsulation in oops?

1016


What does it mean when someone says I oop?

1063


Can you explain polymorphism?

1115


What are the two different types of polymorphism?

1147


What are objects in oop?

1112


What is abstraction example?

1113


What is oops with example?

1054


Write a program to reverse a string using recursive function?

2351


write a program that takes input in digits and display the result in words from 1 to 1000

2432


officer say me - i am offered to a smoking , then what can you say

2103


What do you mean by overloading?

1078


What is static in oop?

1082