Kuna lokaalsed muutujad omavad tähendust ainult ühe alamprogrammi piires, siis saavad mitu erinevat alamprogrammi kasutada sama nimega lokaalseid muutujaid.
In computer science, a local variable is a variable that is given local scope. A local variable reference in the function or block in which it is declared overrides the same variable name in the larger scope.