Showing posts with label Typedef. Show all posts
Showing posts with label Typedef. Show all posts

Friday, January 27, 2012

Type def

The typedef operator is used for creating alias of a data type
For example I have this statement
typedef int integer;
Now I can use integer in place of int
i.e instead of declaring int a;, I can use
integer a;
This is applied for structures too.