• The typedef feature provides the facility for defining new data type name.
• That is, using typedef programmer can define own data type names that represent the existing data types.
• Syntax
typedef type identifier;
Where, type is the existing data type and identifier is the new name given to existing data type.
• Example
typedef int integer;
After this declaration in program, the integers can be declared using word integer like-
integer a,b;
• That is, using typedef programmer can define own data type names that represent the existing data types.
• Syntax
typedef type identifier;
Where, type is the existing data type and identifier is the new name given to existing data type.
• Example
typedef int integer;
After this declaration in program, the integers can be declared using word integer like-
integer a,b;
No comments:
Post a Comment