C – Storage Class Specifiers

Prev     Next Storage class specifiers in C language tells the compiler where to store a variable, how to store the variable, what is the initial value of the variable and life time of the variable. Syntax: storage_specifier data_type variable _name; Types of Storage Class Specifiers in C: There are 4 storage class specifiers available in C language. They are, auto extern static register Storage Specifier  Description auto Storage place: CPU Memory Initial/default value: Garbage value Scope: local Life: Within the function only. extern Storage place: CPU memory Initial/default value: Zero Scope: Global Life: Till the end of the main … Continue reading C – Storage Class Specifiers