High Quality Content by WIKIPEDIA articles! 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.All variables declared within a block of code are automatic by
default, but this can be made explicit with the auto keyword. An
uninitialized automatic variable has an undefined value until it is
assigned a valid value of its type.Using the storage class register
instead of auto is a hint to the compiler to cache the variable in a
processor register. Other than not allowing the referencing operator
(&) to be used on the variable or any of its subcomponents, the
compiler is free to ignore the hint.