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...

Why preincrement operator is faster than postincrement?

Answer Posted / sanish joseph

the pre inc operator increments the value of that particular
variable on that line itself

the post inc operator increments the value of that
particular variable after going on the next line

in simple words

eg.

e=5; on this line value of e=5

e++; on this line value of e=5

++e; on this line value of e=7

Is This Answer Correct ?    27 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the need of a destructor?

1133


What is protected inheritance?

1043


Can we use this pointer inside static member function?

1067


What are the steps in the development cycle?

1097


State the difference between delete and delete[].

1102


What is virtual destructor? What is its use?

1072


Explain binary search.

986


What is the use of endl?

984


What is the difference between passing by reference and passing a reference?

1076


Show the declaration for a static member variable.

992


Comment on c++ standard exceptions?

1069


What is constructor and destructor in c++?

1111


Write about an iterator class?

1073


what are the decision making statements in C++? Explain if statement with an example?

1082


What is scope operator in c++?

1079