Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You’ve already encountered storage class specifiers that you can place in front of variable names, such as extern and static. Here we’ll discuss more specifiers that give the compiler information about the intended use of a variable in your program.
This keyword is used to declare an automatic local variable, as opposed to a static one. It is the default for a variable declared inside a function or method—but you’ll never see anyone using it. Here’s an example: