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 the main purpose of inheritance law?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is object in oop?
What is polymorphism and types?
Explain the advantages of inheritance.
What is meant by oops concept?
write a program to find 2^n+1 ?
What is encapsulation process?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is abstraction with example? What makes a language oop? What is the main feature of oop? What is variable example? Whats is abstraction in oops? Get me a number puzzle game-program