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
How many different levels of pointers are there?
What are enumerations?
How do I use turbo c++?
What is the use of dot in c++?
Is c the same as c++?
How do you save a c++ program?
Describe the process of creation and destruction of a derived class object?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Can constructor be private in c++?
Explain container class.
Which bit wise operator is suitable for putting on a particular bit in a number?
Is java made in c++?
How can you link a c program with a c function?
Can java be faster than c++?
Explain selection sorting?