Chapter 5: Problem 19
Give one good reason that you should not use global variables in a program.
Short Answer
Expert verified
Answer: One solid reason to avoid using global variables is that they can cause potential conflicts, such as conflicting variable names and unintended changes to the variable throughout the program. This can lead to bugs and unexpected behavior in the code.