What are storage classes in C?

ClassMeaning
autoDefault for local variables
staticKeeps its value between function calls
externUses a variable defined in another file or place
registerHint to keep the variable in a CPU register

See the full explanation in Scope and Storage Classes.


Learn more about the similar topics:
Tutorials
C Functions
C Function Arguments and Return Value
C Call by Value and Call by Reference
C Recursion
C Scope and Storage Classes
Exercises & Assignments
Write a C program to find the factorial of a number using recursion
Write a C program to swap two numbers using a function and pointers
Interview Questions & Answers
What is the difference between call by value and call by reference in C?
What is recursion in C?
What is the difference between local and global variables in C?
What are storage classes in C?
What is the use of the static keyword in C?