Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
3,907,977,965 visitors served.
forum Join the Word of the Day Mailing List For webmasters
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

local variable

   Also found in: Acronyms, Wikipedia 0.01 sec.
local variable
In programming, a variable used only within the routine or function it is defined in. When the function is finished and control is returned back to the part of the program that called it, the local variables no longer exist. Contrast with global variable.
local variable [′lō·kəl ′ver·ē·ə·bəl]
(computer science)
A variable which can be accessed (used or changed) only in one block of a computer program.

(programming)local variable - 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 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 they create more interdependencies between sections of code.


Want to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit the webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Feedback
Mentioned in?  References in periodicals archive?   Encyclopedia browser?   Full browser?
No references found
 
The Scripts panel also allows you to pause the JavaScript, set breakpoints, and evaluate local variables.
Observing the Sun with small telescopes The ever-changing Sun is our local variable star.
Al Marzouqi commented that the leadership orientation and commitment to continued excellence, in addition to the expectations and demands of customers and technology, are important local variables for the drivers of change.
 
 
 
Encyclopedia
?

Terms of Use | Privacy policy | Feedback | Advertise with Us | Copyright © 2012 Farlex, Inc.
Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information 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.