Local variable


programming
A variable with lexical scope, i.e. one which only exists in some particular part of the source code, typically within a block or a function or procedure body. This contrasts with a global variable, which is defined throughout the whole program.
Code is easier to understand and modify when the scope of variables is as small as possible because it is easier to see how the variable is set and used. Code containing global variables is harder to modify because its behaviour may depend on and affect other sections of code that refer to that variable.
(2009-12-14)

Read Also:

  • Local-wind

    [wind] /wɪnd/ noun 1. one of a number of winds that are influenced predominantly by the topographic features of a relatively small region.

  • Local yokel

    noun phrase A native or inhabitant of a particular locale, as in She’s only gone out with local yokels, so she’s not used to more sophisticated men. This disparaging rhyming term was first used by troops stationed away from home. [ ; mid-1900s ]

  • Lo-carb

    [loh-kahrb] /ˈloʊˈkɑrb/ adjective, Informal. 1. containing few or fewer : a low-carb diet. adjective restricted in carbohydrate (sugar, glucose, amylose) content or intake; also written low-carb Word Origin 1950-55 adjective See lo-carb

  • Locarno

    [Italian law-kahr-naw] /Italian lɔˈkɑr nɔ/ noun 1. a town in S Switzerland, on Lake Maggiore: Locarno Pact 1925. /Italian loˈkarno/ noun 1. a town in S Switzerland, in Ticino canton at the N end of Lake Maggiore: tourist resort. Pop: 14 561 (2000)

  • Locarno pact

    /ləʊˈkɑːnəʊ/ noun 1. a series of treaties, concluded in Locarno, Switzerland in 1925, between Germany, France, Belgium, the United Kingdom, Italy, Poland, and Czechoslovakia. The principal treaty, between Germany, France, and Belgium, concerned the maintenance of their existing frontiers, settlement of disputes by arbitration without resort to force, and the demilitarization of the Rhineland. This […]


Disclaimer: Local variable definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.