Question: what is the difference between inline function and preprocessor macro?
Answer: The basic difference between inline and macro is that an inline functions are parsed by the compiler whereas, the macros in a program are expanded by preprocessor. The keyword used to define an inline function is “inline” whereas, the keyword used to define a macro is “#define“.