I am fairly new to C and C++ and I am trying to understand about functions. I came across this term called inline function and understand it as when a function is declared inline, the compiler pastes the entire code in that function whenever and wherever it is called.
I thought this is actually what happens at a function call but now realize that is not the case.
Can someone explain in detail as to what happens at the compiler and system level when a normal function is called and an inline function is called?
Any material on understanding this will be appreciated.