C storage class

Storage Class in C Programming :

  • Every Variable in a program has memory associated with it
  • Memory Requirement of Variables is different for different types of variables
  • In C , Memory is allocated & released at different places

Storage Class : Summary

Term Definition
Scope Region or Part of Program in which Variable is accessible
Extent Period of time during which memory is associated with variable
Storage Class Manner in which memory is allocated by the Compiler for Variable Different Storage Classes

Different Storage Classes :

  1. Auto Storage Class
  2. Static Storage Class
  3. Extern Storage Class
  4. Register Storage Class