C++ inline function concepts interview questions and answers

What is inline function? - An inline function is a combination of macro & function. At the time of declaration or definition, function name is preceded by word inline....
Difference between inline functions and macros - A macro is a fragment of code which has been given a name. Whenever the name is used, it is replaced by the contents of the macro.....
What are static member functions? - A static function can have an access to only other static members (functions or variables) declared in the same class......
Do inline functions improve performance? - Inline functions behave like macros. When an inline function gets called, instead of transferring the control.....
What happens when recursion functions are declared inline? - The call to the body of the function is replaced by an inline function. This reduces the saving context on stack....
Advantages and disadvantages of using macro and inline functions - A textual substitution is provided by a macro as a constant, where as an inline function is procedure which is called at each time...