Storage class :- In addition to datatypes variable has one or more attribute and that is class.It is of 4 types.
Automatic - When a variable declared inside a function block then by default it is assumed automatic but we can also use a keyword auto [not necessary]. Variables with auto keyword get initialized when it is called and as soon as function is over it get destroyed. Register - When a variable is frequently used then it can be declared with register keyword , it is stored in CPU's register. & is not used in this. External - Variables that are to be used in diffrent files we can declare it with extern keyword. Static - They are also like automatic variable but they exist till the end of program i.e not created or destroyed everytime function is called. Global - Global variable remains till the end of program.