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-16 8:43

Completely beginner question, so please keep answers as simple as possible:
In LISP programming, what is the purpose of using the defmacro (eg (defmacro pi () 3.14)), when you can just defvar a variable with the same value?

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