How macro works ...in C program...? Please Explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How macro works ...in C program...? Please Explain

#include <stdio.h> #define square(x) x*x int main() { printf("%d",square(4-1)); return 0; }

9th Jul 2020, 5:18 PM
Aishwarya Kshirsagar
2 Answers
+ 2
Thanks alot
9th Jul 2020, 5:36 PM
Aishwarya Kshirsagar
+ 2
Preprocessors is just a simple text repelecment.
9th Jul 2020, 7:26 PM
قاسم رمضانی
قاسم رمضانی - avatar