You are on page 1of 1

Inline Functions

The inline function is special user define function particularly used for small function but
having no prototype. The inline function is defined before the main function and its
declaration is preceded by the keyword inline.

Normally, when compiler compiles the source code, it generates a special code at
function call to jump to the function defination. It again generates special code at the end
of function defination to jump back to the calling function.

Thus time is spent in passing the control to the function body and then back to the calling
function during execution of program.

But in inline function , the code of the function body is inserted at the place of function
call during compilation.

You might also like