There are four types of storage class or variable in c.
1) auto storage class.
2) register storage class.
3) static storage class.
4) external storage class.
Chat with our AI personalities
In C there are four storage classes: automatic, external, register and static.
advantage of storage classes
AUTO EXTERN STATIC are the storage classes in c++
We don't. The auto storage class is the default storage class for all local variables and is therefore completely redundant in C. It exists for no other reason than that C evolved from B and inherited all its storage classes (auto, static, extern and register).
Different from what? Storage classes are auto, register, static, extern and typedef (formally).