Difference between Macro and Inline function in C++
1. Inline : It is normal function that is inline keyword and expanded by the compiler. Its arguments are evaluated only once. Syntax of an Inline function: 2. Macro : It is also called preprocessors directive and these are defined by the #define keyword. Syntax of Macro: Macros are just "copy paste" in the code before the compilation.… Read More »