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
What is balance factor?
write knight tour problem which is present in datastructure
What is encapsulation selenium?
What is coupling in oop?
What are objects in oop?
Why multiple inheritance is not allowed?
What is object in oops?
#include
What does I oop mean?
What is static in oop?
Why do we use class?
Can bst contain duplicates?
How many human genes are polymorphic?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What does oop mean in snapchat?