A term applied to variables that are accessible only in a restricted part
of a program, typically in a procedure or function body. By contrast, global
variables are accessible throughout a program. The use of local variables can
help to resolve naming conflicts, and may lead to a more efficient use of
memory.