I searched in web where will be the C macros stored in memory and how does it consumes more memory compared to functions? Could not get any satisfying answer .Can anyone please
Macros are a preprocessor construct. All macros are replaced by their definitions before the compiler even sees the code.
This means that if you use a lot of macros with large replacements, they will generate a lot code. Function calls don't work that way, since they call a single function that only has the code once.
There is no standard way of figuring out how much code is due to macros, no.