View Single Post
Old 02-16-2005, 08:48 PM   #4 (permalink)
username
Insane
 
#define PI 3.1415 is the same method as #define PI 3.14 and Const PI = 3.14 wouldn't be a symbolic constant. Think about what #define does. It replaces the token PI in the source code with the number 3.14 before the code is compiled. Using this idea, a #define could be more than a number...
username is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47