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: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2011-02-15 18:38

>>7
Two files, void.h with all my defines and includes, and the file with the particular code.

_____________________________________________
http://bayimg.com/image/iafhbaacj.jpg
orbis terrarum delenda est
http://encyclopediadramatica.com/Portal:Furfaggotry Furry Drama Encyclopedia

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