[Solved] How does #define carries the function name in c?
C preprocessor macros simply do text replacement. They have no semantic awareness of your program. This: #include <stdio.h> #define x printf(“%s”, f); int main() { char* f = “MAIN”; printf (“Hello World”); x; return 0; } Becomes: #include <stdio.h> int main() { char* f = “MAIN”; printf (“Hello World”); printf(“%s”, f);; return 0; } Please … Read more