Wednesday, July 23, 2014

Where are macros stored in the memory?

#define func() func1(){...}

Macros aren't stored anywhere separately. They get replaced by the code even before compilation.The compiler is unaware of the presence of any macro. If the code that replaces macro is large then the program size will increase considerably due to repetition.





For any clarification or suggestion please post comments below.

2 comments: