V
venkatesh.k.desai5
#define PI 3.12
#define PI 3.12
Eric said:
#define PI 3.12
#define PI 3.12
Tak-Shing Chan said:3.12 is of type double, therefore sizeof PI is the same as
sizeof(double).
Tak-Shing
#define PI 3.12
But how is it? compiler will allocate memory.
Vlad Dogaru said:Mine shows 3.14, but maybe your's is late. Are the batteries dead?![]()
Richard said:(e-mail address removed) said:
Why?
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Coz macro's are processed in CPP.
[email protected] said:#define PI 3.12
I mean how much memory it will take?
Coz macro's are processed in CPP.
> But how is it? compiler will allocate memory.
Joe Wright said:The compiler doesn't involve itself in #define thingies. The compiler
never sees PI. The preprocessor has already replaced PI with 3.12 and,
correct or not, this is what the compiler eventually sees.
Eric said:
Christopher Benson-Manica said:It's 3.00 on mine, but I'm running on a King Solomon model, so
apparently it's a QOI issue.
I mean how much memory it will take?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.