Answer Posted / subhashish sen
The inline function is a special function which is basically
used for small function body.If a function with large body
is defined as inline then it would be treated as a normal
function.
The advantage is that the code gets inserted at the place of
function call so it will reduce the time taken for control
to go back and forth from function call to function
definition.So as a result it will make execution faster.
Note: When we declare a function as inline we merely send a
request to the compiler,so its up to the compiler whether
our request is is accepted or not.So its better to define an
inline function for a small function.
| Is This Answer Correct ? | 26 Yes | 4 No |
Post New Answer View All Answers
How can you overcome the diamond problem in inheritance?
Why do we use encapsulation in oops?
what is graphics
Can we create object of interface?
What is the highest level of cohesion?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
write a program that takes input in digits and display the result in words from 1 to 1000
What is meant by multiple inheritance?
What do you mean by Encapsulation?
What is pointer in oop?
What is methods in oop?
#include
What is the purpose of enum?
What is the difference between encapsulation and polymorphism?
What is abstraction example?