1.Global constants have no side effects in a program?

T/F and please explain.Thank you.
A constant is not a variable.
Only functions can have side effects.
If there is a naming conflict of the global constant with some other object or function, that could be considered a side-effect. Though the local name will take precedence over the global one, it may still be a source of confusion.
Topic archived. No new replies allowed.