Content deleted Content added
No edit summary |
→C, C++: update footnote on auto |
||
Line 12:
(Called ''automatic'' variables.)
All variables declared within a [[block (programming)|block]] of code are automatic by default, but this can be made explicit with the <code>auto</code> keyword.<ref group="note">
Using the storage class <code>register</code> instead of <code>auto</code> is a hint to the compiler to cache the variable in a processor register. Other than not allowing the referencing operator (<code>&</code>) to be used on the variable or any of its subcomponents, the compiler is free to ignore the hint.
|