Inline function is a function which function name with function body at compiled time.In line function reduces the execution time .It is a small size function which never contains the loop otherwise compiler treats the inline function as normal function.
Inline functions are small sized functions (basically 2-3 line function) which do not contain any loop.
whenever an inline function is invoked it is expanded thereby rather then passing the control to where it has been defined thus reducing execution cost and time.
we cannot force a function to be inline. It is purely compiler's decision whether to take a function as inline or not.