Course Content

  • autostorage
  • registerstorage
  • staticstorage
  • externstorage

Course Content

FAQs

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.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere