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
What is vector pair in c++?
Why do we need c++?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What is c++ redistributable?
What is the best free c++ compiler for windows?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What are the stages in the development cycle?
What are activex and ole?
What do you know about near, far and huge pointer?
What is meaning of in c++?
Describe the setting up of my member functions to avoid overriding by the derived class?
What is pure virtual function? Or what is abstract class?
What is split a string in c++?
What are the four main data types?
Is rust better than c++?