auto Keyword

Keyword Index

Defines a local variable as having a local lifetime.

Keyword auto uses the following syntax:

[auto] data-definition;
As the local lifetime is the default for local variables, auto keyword is extremely rarely used.

Note: GNU C extends auto keyword to allow forward declaration of nested functions.