Sunday 21 January 2018

Introduction To Storage Classes


Introduction To Storage Classes

Introduction To Storage Classes
strong class provides information about their location and visibility.The storage class decides the portion of the program within which the variables are recognized.
A variables storage class tells us

1.where the variables would be stored.
2.What will be the initial value of the variable,if the
initial value is not specifically assigned.
3.What is the scope of the variable i.e., which functions
the value of the variable would be available.
4.What is the lifetime of the variable, i.e., how long the
 variable exist.

There are 4 types of storage classes in C.
1.Automatic
2.Static
3.External
4.Register




    

0 comments:

Post a Comment