Unit-3 Storage Classes
Unit-3 Storage Classes
negister
staic
extern
data tye vaniable-namintialvalu]
Sgrdx: stvaragclan
DAuto Steag Clas
autematically created coheu ucten is
-Ate niabla is semeved coheu fuctien is teminated.
Called aud automatically
storage clan for local aia bles.
-De<ault aute nt aj int a;
a= 11
a- l1
a= 11
4) Exterm Sterage lasses
te in fom te comilor thata vaniable i's declaned
- Used
another c-fle)
du Som external file
-Prog1am Example
Ale2.c
# include <stio.h>
t price = loo ;
ijt
13eid hikeC)
extem int pice ;
exten ued hike O) puce t t)
iut main ()
Lpindf(°Pice =d n' price);
Aike();
potf ("ice=hd \n' pice);
eton o;