WHAT ARE STORAGE SPECIFIERS?
- The storage specifiers define the scope or visibility and the lifetime of the variable or function within a program.
- The lifetime is a duration till which the variable will remain active and visibility is in which the module of the program the variable is accessible.
- The storage specifiers is like how storage is allocated and how variable is treated by compiler depends on the storage classes.
THE STORAGE SPECIFIERS ARE DIVIDED INTO 5 PARTS:
LET US DISCUSS ABOUT THESE SPECIFIERS IN BRIEF:
The auto storage specifier is the default storage specifier for all local variables. It is applied to local variables and is visible only inside the function where it is declared and it dies as soon as function execution is over.
LET US HAVE A LOOK AT THE SYNTAX:
LET US HAVE A LOOK AT THE EXAMPLE: