Main Page | See live article | Alphabetical index

Global variable

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.

This article is a stub. You can help Wikipedia by fixing it.