Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.

Responsive image


Local variable

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. In programming languages with only two levels of visibility, local variables are contrasted with global variables. On the other hand, many ALGOL-derived languages allow any number of nested levels of visibility, with private variables, functions, constants and types hidden within them, either by nested blocks or nested functions. Local variables are fundamental to procedural programming, and more generally modular programming: variables of local scope are used to avoid issues with side-effects that can occur with global variables.


Previous Page Next Page






Variable local Catalan Lokální proměnná Czech Lokale Variable German Loka variablo EO Variable local Spanish Lokaalne muutuja ET متغیر محلی FA Variable locale French Staðvær breyta IS ローカル変数 Japanese

Responsive image

Responsive image