typedef is a reserved keyword in the programming languages C and C++ . It is used to create an additional name (alias) for another data type, but does not create a new type, except in the obscure case of a qualified typedef of an array type where the typedef qualifiers are transferred to the array element type.
Read moreCan typedef be used in union?
The use of a typedef for a union type is very similar . typedef union Float Float; union Float { float f; char b[sizeof(float)]; }; A structure similar to this can be used to analyze the bytes that make up a float value.
Read more