Content deleted Content added
Super48paul (talk | contribs) Reverted 1 edit by Kali yadav (talk): Looks like nonsense. (TW) |
→C, C++: Removed dead example, the auto keyword cannot anymore be used like that. Tags: Mobile edit Mobile web edit |
||
Line 12:
(Called ''automatic'' variables.)
All variables declared within a [[block (programming)|block]] of code are automatic by default
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.
|