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

What are the advantages and disadvantages of using inline
and const?

Answer Posted / nidhi singh

advantages of inline-no function calls need to be
generated.no stack required.
disadvantage -inline functions require more space..
the whole definition is copied.
by using const we insure the value of variable is not goin
to change..

Is This Answer Correct ?    42 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long will it take to learn programming?

1001


When should we use multiple inheritance?

1006


What is enum class in c++?

1192


Is c++ a programming language?

1037


Mention the ways in which parameterized can be invoked.

901


Why the usage of pointers in C++ is not recommended ?

1365


What is a node class in c++?

1036


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

1064


What is an inline function in c++?

1082


How to get the current position of the file pointer?

988


What are stacks? Give an example where they are useful.

1001


What are the operators in c++?

1069


What is the exit function in c++?

956


Which is the best c++ compiler?

999


What relational operators if statements in c++?

1129