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
When do we run a shell in the unix system? How will you tell which shell you are running?
Explain the extern storage classes in c++.
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What are the advantages of inheritance in c++?
Explain the auto storage classes in c++.
Explain the uses of static class data?
What is the full name of logo?
Define copy constructor.
What is the use of ::(scope resolution operator)?
Please explain the reference variable in c++?
Describe friend function & its advantages.
Is c++ faster than c?
What is the best ide for c++?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?