automatic variable
Automatic variables are variables local to a block. They are automatically allocated on the stack when that block
of code is entered. When the block exits, the variables are automatically deallocated. Note that automatic variables are often
called local variables.
The C storage class for automatic variables is auto; however
auto is assumed unless otherwise specified. The basic syntax used to declare automatic variables in C is as
follows
[storage_class] data_type variable_1, variable_2, ... variable_n;
An automatic variable will have an undefined value when declared, so it is good practice to initialize it with a valid value before using it.
See also
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)



