Everything About ___
Live briefing

Everything about Local variable

Computer programming, a variable only usable in a portion of a program (the scope)

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. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Local variableA 5-minute orientation
  2. Skim a recent paper: An Adaptive Localized Decision Variable Analysis Approach to Large-Scale Multiobjective and Many-Objective OptimizationInfluential work since 2022
  3. Pick up a classic book: Study of the impact of staggered work hours on public transportation costs and service levelsThe most-reprinted book on the subject
  4. Read the landmark paper: Proposed Experiment to Test Local Hidden-Variable TheoriesCited 6,388 times
  5. Go sideways: Automatic variableA closely related topic
  6. Go sideways: Scope (computer programming)A closely related topic

📖 Definitions

No dictionary entry for this exact phrase.

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics