Question: what is difference between inline function and 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 compiler may not inline and expand all the functions defined inside a class. On the other hand, macros are always expanded.