No, it is not acceptable. Variables defined outside of a function are considered global variables and should be recognized throughout the program unless explicitly hidden or overwritten by a local variable with the same name within a function. If the variables are not recognized outside of the function, it could indicate a problem with the program's scope or variable naming.
Asked: 2023-06-10 02:13:28 +0000
Seen: 21 times
Last updated: Jun 10 '23