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
Tell me difference between constant pointer and pointer to a constant.
What will happen if a pointer is deleted twice?
Write about all the implicit member functions of a class?
What is a constructor and how is it called?
Do class declarations end with a semicolon?
What is the difference between reference and pointer?
What are the effects after calling the delete this operator ?
What is the best it certification?
Write about the role of c++ in the tradeoff of safety vs. Usability?
Why is it called c++?
Who created c++?
What is called array?
What do you mean by “this” pointer?
In the derived class, which data member of the base class are visible?
What are signs of manipulation?