"ve****************@gmail.com" <ve****************@gmail.comwrites:
#define PI 3.12
Please put the question in the body of your article. Not all newsreaders
show the subject along with the body of the message.
The question was "what is size of this macro?". As you say later,
you're asking how much memory is allocated.
The answer is none. Macros don't allocate memory; they perform
textual substitution on your source code.
By itself, the macro definition
#define PI 3.12
will simply disappear from your program if you don't use it.
If you do use it, each occurrence of PI in your source will simply be
replaced with 3.12. What this does depends on how you use it.
The literal 3.12 is of type double, if that's what you were wondering about.
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.