Storage class Specifiers

Share it Please
1.Auto
           The Boundary of the Auto class specifier is only within one function.It is equal to local variables and all the local variables are of auto class specifiers only.

       Syntax: 

          auto data_type variable;

2.Static
        Static variables are the variables whose boundary is unlimited(Whole Program).It is equal to global variables.

         Syntax: 

         static data_type variable;

3.Register
         The Boundary of Register Variable is also within a one function.but difference is that, that auto variables are stored in CPU memory and register variables are stored in register memory.they are faster than any local or auto variables.

         Syntax:

       register data_type variable;

4.extern
         The Boundary of the extern variable is throughout the main program.they are equivalent to global variables. 

         Syntax:

       extern data_type variable;