Macros vs Functions
Macros are preprocessed, meaning that all the macros would be executed before the compilation stage. However, functions are not preprocessed but compiled. Example of Macro: #include<stdio.h> #define A 10 int main() { printf(“%d”,A); return 0; } OUTPUT=10; Example of Function: #include<stdio.h> int A() { return 10; } int main() { printf(“%d”, A()); return 0; } […]
Macros vs Functions Read More »