This shows you the differences between two versions of the page.
c:keywords:auto [2013/01/12 15:53] Jim |
c:keywords:auto [2024/02/16 01:06] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== auto ====== | ||
+ | since C 89 | ||
+ | |||
+ | The ''auto'' keyword defines a local variable as having a local lifetime. As the local lifetime is the default for local variables it's extremely rarely used. | ||
+ | **Note:** GNU C extends the ''auto'' keyword to allow forward declaration of nested functions. | ||
+ | |||
+ | === Syntax === | ||
+ | |||
+ | ''[auto] //data-definition;//'' | ||