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 long will it take to learn programming?
When should we use multiple inheritance?
What is enum class in c++?
Is c++ a programming language?
Mention the ways in which parameterized can be invoked.
Why the usage of pointers in C++ is not recommended ?
What is a node class in c++?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What is an inline function in c++?
How to get the current position of the file pointer?
What are stacks? Give an example where they are useful.
What are the operators in c++?
What is the exit function in c++?
Which is the best c++ compiler?
What relational operators if statements in c++?