You can use typedef to give a name to your user defined data types as well. For example, you can use typedef with structure to define a new data type and then use that data type to define structure variables directly as follows −
Read moreWhat is typedef structure in C?
The C language contains the typedef keyword to allow users to provide alternative names for the primitive (e.g., int) and user-defined (e.g struct) data types . Remember, this keyword adds a new name for some existing data type but does not create a new type.
Read moreWhat is typedef structure in C?
The C language contains the typedef keyword to allow users to provide alternative names for the primitive (e.g., int) and user-defined (e.g struct) data types . Remember, this keyword adds a new name for some existing data type but does not create a new type.
Read moreWhat is the typedef declaration give suitable example?
You can use typedef to give a name to your user defined data types as well. For example, you can use typedef with structure to define a new data type and then use that data type to define structure variables directly as follows −
Read more