In programming, a variable that can be used by all modules and functions in the program. The common practice is to keep global variables to a minimum, because they can be manipulated by any routine in the program at any time. Contrast with
local variable.