Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,740,104,281 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

local variable

   Also found in: Acronyms, Wikipedia, Hutchinson 0.03 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.


How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
3 is the delivery of industry-leading formal support for SystemVerilog local variables which provide users with an efficient way to handle complex data and design constructs.
The Divisional President for the North America Division also participates in a local variable salary programme, the result of which can yield a maximum of a further 100 per cent of the fixed salary every other year.
Other additions to Vista's debugging capabilities include enhanced transaction-level model (TLM) viewing with a transaction sequence viewer and improved support for local variable tracing in Vista's waveform and process status window.
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
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. Terms of Use.