Question: what is difference between using a macro and inline function?
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. ... A function that is inline can access the members of the class, whereas, a macro can never access the members of the class.