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
Can constructor be private in c++?
What are advantages of using friend classes?
What are stacks? Give an example where they are useful.
What is prototype for that c string function?
What operators can you overload in c++?
What is the history of c++?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What are friend classes? What are advantages of using friend classes?
What is istream and ostream in c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?
Do vectors start at 0 c++?
What is a constant? Explain with an example.
What do you mean by stack unwinding in c++?
Does c++ have arraylist?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.