0% found this document useful (0 votes)
1 views

storage class

Storage classes in C define the lifetime, visibility, memory location, and initial value of variables. The four types of storage classes are Automatic, External, Static, and Register, each serving to describe variable scope, storage location, initialization, lifetime, and accessibility. Understanding these classes is essential for effective variable management in C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

storage class

Storage classes in C define the lifetime, visibility, memory location, and initial value of variables. The four types of storage classes are Automatic, External, Static, and Register, each serving to describe variable scope, storage location, initialization, lifetime, and accessibility. Understanding these classes is essential for effective variable management in C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Storage Classes in C: Auto, Extern, Static, Register

Storage classes in C are used to determine the lifetime, visibility,


memory location, and initial value of a variable. There are four
types of storage classes in C
o Automatic
o External
o Static
o Register
Thus a storage class is used to represent the information about a
variable.
A storage class in C is used to describe the following things:
 The variable scope.
 The location where the variable will be stored.
 The initialized value of a variable.
 A lifetime of a variable.
 Who can access a variable?
Summary table of storage classes

You might also like