So what's the difference between #define and a variable apart from #define has no type and can't be changed? Or is that it?
So what's the difference between #define and a variable apart from #define has no type and can't be changed? Or is that it?
I think the question I would ask is what they have in common. I'm pretty sure the answer is "nothing".
True, They have almost nothing in common. #define is a pre-preprocessor directive which simply does textual substitution. Whereas variables have a value and an address. The list is endless really..
Spidey out!