Inline function is a function that is expanded in line when it is invoked. The compiler replaces the function call when it is invoked. The figure shown illustrates the definition of an inline function.
General format:
inline function()
{
function body;
}


