What Is The Difference Between Inline Function And Preprocessor?


1 Answers

Gopinath Sundaram Profile
Preprocessor is the phase which comes before compiling(Pre-before).This phase takes care of macro substitution,etc.Inline function is the expansion of function calls there itself by the compiler to prevent function overhead for small functions(by using the keyword inline(c++) the function is made inline).However,the compiler decides whether the functions is expanded or not based on certain conditions implemented in the compilers.

Answer Question