Question: what is the difference between macro and inline function in c?
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.