C – Storage Classes

Home/C - Tutorial/C – Storage Classes
C – Storage Classes 2017-06-02T19:04:37+00:00

 

 

Storage Classes Description
Static  Storage Class Static variables can be  declared within a function. These variables retain their values from the previous call. i.e., the value that they had before returning from the function.
Register Storage Class Register variables are stored in the register of the microprocessor. The number of variable which can be declared register are limited.
Automatic Storage Class Automatic variables are allocated space in the variable on the stack. To declare a variable automatic storage class auto specified.
External Storage Class External variables are global to the file in which they are defined. External variables are used only when all functions needed a particular variable.

 

Prev Next