Difference between storage class and storage variable ?

A storage class is an attribute that changes the behavior of a variable. It controls the lifetime, scope and linkage.

A storage class is an attribute that tells the scope of accessability and also changes the behaviour of variable.

There are five types of storage classes

1) auto

2) static

3) extern

4) register

5) typedef

there are five types of storage classes in C-programming.
1)auto(local)
2)extern(global)
3)static
4)registr(faster memory)
5)typedef(user defined data type).

No comments:

Post a Comment