After coming across symbolic constants via K&R's The C Programming Language I fail to see the usage/importance of them. I'd rather use a 'real' constant, say an integer, than using a #define
statement. I can see why you would use say...
#define PI 3.14
as opposed to just typing "3.14" in your program but why would you use a #define
statement if
I could just use...
static const double PI = 3.14;
Are symbolic constants used today or is it just a feature of the language that was more useful 'back in the day'?
What do you recommend I should use for constants?