Can 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.

Sizin İçin Seçtik  What is the use of unions in C?

Leave a Reply

Your email address will not be published. Required fields are marked *