Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C - #define

Name: Anonymous 2011-02-15 17:37

Completely beginner question, so please keep answers as simple as possible:
In C programming, what is the purpose of using the #define directive (eg #define PI 3.14), when you can just declare a variable and initialize it to the same value?

Name: Anonymous 2011-02-15 18:31

>>4,5
You wouldn't need them if you used a single file in first place.

multiple files projects considered harmful

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List