Structures are used to group together different data elements (types of variables) under the same name . These data elements, known as members, can have different types and different lengths.
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