From Wikipedia, the free encyclopedia.
In computer programming, a global variable is a variable that does not belong to any subroutine in particular; therefore can be accessed from any point in a program. Although local variables can also be accessed from any point of execution as well (assuming that the previous stack frames are not protected), it is considered bad practice.

