Introduction : Storage Class in C Programming



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

TermDefinition
ScopeRegion or Part of Program in which Variable is accessible
ExtentPeriod of time during which memory is associated with variable
Storage ClassManner 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