If I use macros in my C code, such as
#define var 10
then where exactly are the stored in the space allocated to the process by the kernel?
In heap or BSS or global data? Or is it just a text replacement for var in one of the compiler passes?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes.
the last one
just a text replacement
It is performed by a preprocessing pass.
Some good details can be found here