Storage class

 

Storage class

Storage class

Storage class defines the scope and visibility and lifetime or a function of a C program.It tells from what part of code we can access a variable.
Storage class defines:

1.The scope of a variable.
2.A location where the variable will be stored.
3.Initialization value of a variable.
4.The lifetime of a variable.

Four types of Standard Storage Class:

1. static.
2. auto.
3. register.
4. extern. 


storage class


Post a Comment

0 Comments