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 many different levels of pointers are there?

652


What are enumerations?

651


How do I use turbo c++?

545


What is the use of dot in c++?

618


Is c the same as c++?

562






How do you save a c++ program?

552


Describe the process of creation and destruction of a derived class object?

637


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

647


Can constructor be private in c++?

604


Explain container class.

683


Which bit wise operator is suitable for putting on a particular bit in a number?

717


Is java made in c++?

579


How can you link a c program with a c function?

560


Can java be faster than c++?

666


Explain selection sorting?

638