storage class contains five types of storage class in c .
I. Extern
II. Static
III. Register
IV. Auto
V. typedef
typedef is not a storage class. Typedef is an like alias for something.You can do:typedef int age;which is like creating an alias for "int" as "age" then you can say in your programage myage;age friends_age;age average_age;age dads_age;Just read it a couple of times and you will get it.
typedef is not a storage class. Typedef is an like alias for something.
ReplyDeleteYou can do:
typedef int age;
which is like creating an alias for "int" as "age" then you can say in your program
age myage;
age friends_age;
age average_age;
age dads_age;
Just read it a couple of times and you will get it.