.......................... 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.
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.
Inline functioninstruct compiler to insert complete body of the function wherever that function got used in code. It also save overhead of variables push/pop on the stack, while function calling. It also save overhead of return call from a function. It increases locality of reference by utilizing instruction cache.
Inline functionis powerful concept that is commonly used with classes. If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time.