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 benefit of encapsulation?

1018


What is iterator c++?

927


Write a program in C++ for Fibonacci series

1137


What are the various access specifiers in c++?

980


What are the advantages of using friend classes?

1082


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1048


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1010


What are function prototypes?

1187


What are separators in c++?

1035


Can you please explain the difference between static and dynamic binding of functions?

972


How do we balance an AVL Tree in C++?

1087


What is tellg () in c++?

1235


Differentiate between late binding and early binding. What are the advantages of early binding?

974


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

912


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

948