1.For example,"#define Days 365 " macro definition sentence can been defined in code area and ram area?
2.There are some difference about these 2 area?
Hello
I am not sure I understand the question here.
The statement ,"#define Days 365" is basically a macro definition.
The pre-processor will basically replace all occurrence of Days by 365 at the very beginning of the build process.
As such a macro does not occupy any space in either ROM or RAM.
CrasyCat