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

When do we run a shell in the unix system? How will you tell which shell you are running?

917


Explain the extern storage classes in c++.

1001


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

952


What are the advantages of inheritance in c++?

1043


Explain the auto storage classes in c++.

1053


Explain the uses of static class data?

1052


What is the full name of logo?

1063


Define copy constructor.

1057


What is the use of ::(scope resolution operator)?

1018


Please explain the reference variable in c++?

1018


Describe friend function & its advantages.

1089


Is c++ faster than c?

977


What is the best ide for c++?

1038


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

1118


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?

1009