An inline function is a function that is expanded in line when it is invoked.That is, the compiler replaces the function call with the corresponding function code. The inline functions are defined as follows: Example: The above inline function can be invoked by statements like Some of the situations where inline expansion may not work are:
|