|
Article on other languages:
|
In computer programming, an automatic variable is a lexically-scoped variable which is allocated and de-allocated automatically when program flow enters and leaves the variable's scope. The term local variable is usually synonymous with automatic variable, since these are the same thing in many programming languages. Automatic variables may be allocated in the stack frame of the procedure in which they are declared; this has the useful effect of allowing recursion and re-entrancy. (For efficiency, the optimizer will try to allocate some of these variables in processor registers.) In specific programming languagesC, C++(Called local or automatic variables.) All variables declared within a block of code are automatic by default, but this can be made explicit with the Using the storage class Java(Called local variables.) Similar to C and C++, but there is no Perl(Called lexical, my or private variables.) Declared using the See alsoReferences and footnotes
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net