In C, there are four types of storage: automatic, register, static, and external.
The extern storage class is used to provide a reference to a global variable that is shared by all application files. The variable cannot be initialised when you use 'extern,' but it does direct the variable name to a previously established storage location.
The storage class specifies the place in memory where an object's storage is allocated, as well as the duration of the storage allocation. It also determines the scope, which defines the portion of the programme where a variable name is visible, i.e. the variable is accessible by name.
A variable will only be known globally in this file if it is static. extern means that a global variable defined in another file will be known in this file, and it can also be used to call functions defined in other files.
The term "volatile" does not refer to a storage class. Type qualifiers are volatile and const.
Learner's Ratings
4.4
Overall Rating
69%
18%
5%
4%
4%
Reviews
P
Pradeep Kumar Maurya
5
the world best course
M
Manmohan Surajlal Agade
5
good
A
Aakash Kumar
5
nice teacher
A
Ashlesh Satpute
5
Nice
S
SATYAM
5
this is a awosome course every boudy do it
B
Balaji Bhokare
5
nice
A
Ashish Arjun Gaikwad
5
Absolutely!!!and very easy to understand
Kolhapuri bhashet lay bhari...
Share a personalized message with your friends.