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

Write is a binary search tree? Write an algo and tell complexity?

968


What are the various arithmetic operators in c++?

1059


When you overload member functions, in what ways must they differ?

985


What is the history of c++?

994


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

969


Do you know what are pure virtual functions?

1102


How does the copy constructor differ from the assignment operator (=)?

1087


Differentiate between an array and a list?

1139


How can I learn c++ easily?

1014


Is empty stack c++?

936


What is diamond problem in c++?

945


What is a constant reference?

1014


Is there a c++ certification?

987


What are register variables?

1065


Write about all the implicit member functions of a class?

1014