[ back to toc ]


Date: 2002/06/04 16:06

I want to know if there is any way that I can use (#define)
Such a way to let the user pick any number he/her want.
For example in any program this is how we use it:
#define PI 3.14
But I want to see if it's possible to use it like:
#define PI "please enter the value of PI: %f" pi
so it would let the user to define what the value of PI going to be before
it go to main.
thank you

Not at all. C is a compiled language. The "#define" is a preprocessor
directive that is handled when the program is compiled and not when the
program runs.


[ back to toc ]