Edit this is an answer to your original question, of whether you'd use const
with a define
... it doesn't really make sense now you've edited the question to ask something different.
A #define
does not define a variable, so you can't change it anyway, so the question doesn't make sense.
This isn't even possible:
#define FOO 99
int main()
{
FOO = 98;
}
Because the preprocessor substitutes the macro FOO
for the replacement 99
, so the compiler sees this code:
int main()
{
99 = 98;
}
And obviously that's nonsense. You can't assign to a literal, it's not a variable (const or not) it's just a value.