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 moreWhat are unions in C?
Union is an user defined datatype in C programming language . It is a collection of variables of different datatypes in the same memory location. We can define a union with many members, but at a given point of time only one member can contain a value.
Read more