Automatic variable

Automatic variable


=In the C programming language=

Variables declared within a block of code are, by default, automatic variables. This means that when the block is entered during program execution, the automatic variables will be automatically allocated; when the block is exited, the automatic variables will be de-allocated. The keyword (the "storage class") used to declare automatic variables is auto, but this is the default (making the keyword superfluous). An automatic variable will have an undefined value when declared, so it is important to initialize it with a valid value before using it.

The term "local variable" is usually synonymous with automatic variable, since these are the same thing in most programming languages.

ee also

*C syntax#Storage duration specifiers


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • automatic variable — automatinis kintamasis statusas T sritis automatika atitikmenys: angl. automatic variable vok. automatische variable, f rus. автоматическая переменная, f pranc. variable automatique, f …   Automatikos terminų žodynas

  • Variable-length array — In programming, a variable length array (or VLA) is an array data structure of automatic storage duration whose length is determined at run time (instead of at compile time).Programming languages that support VLAs include APL, COBOL, and C (added …   Wikipedia

  • variable automatique — automatinis kintamasis statusas T sritis automatika atitikmenys: angl. automatic variable vok. automatische variable, f rus. автоматическая переменная, f pranc. variable automatique, f …   Automatikos terminų žodynas

  • Variable gauge axles — (VGA) are axles that allow railway vehicles to pass from tracks of one rail gauge to a different gauge. Variable gauge axles are used to allow the running of trains between Spain and France, Europe and Russia, Kazakhstan and China, and Mongolia… …   Wikipedia

  • Automatic double tracking — (ADT) was an electronic system designed to augment the sound of voices and instruments during the recording process. It used linked tape recorders to create an instant and simultaneous duplication of sound which could then be captured on… …   Wikipedia

  • Variable envelope return path — (VERP) is a technique used by some electronic mailing list software to enable automatic detection and removal of undeliverable e mail addresses. It works by using a different return path (also called envelope sender ) for each recipient of a… …   Wikipedia

  • Variable air volume — (VAV) is a technique for controlling the capacity of a heating, ventilating, and/or air conditioning (HVAC) system. The simplest VAV system incorporates one supply duct that, when in cooling mode, distributes approximately convert|55|F supply air …   Wikipedia

  • Automatic transmission — An automatic transmission (commonly AT or Auto ) is an automobile gearbox that can change gear ratios automatically as the vehicle moves, freeing the driver from having to shift gears manually. Similar but larger devices are also used for heavy… …   Wikipedia

  • Variable capacitor — Rotary variable capacitor A variable capacitor (also known as a variable air condenser ) is a capacitor whose capacitance may be intentionally and repeatedly changed mechanically or electronically. Variable capacitors are often used in L/C… …   Wikipedia

  • Variable-sweep wing — A Variable sweep wing is an aeroplane wing that may be swept back and then returned to its original position during flight. It allows the aircraft s planform to be modified in flight, and is therefore an example of variable geometry.Typically, a… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”