What is C union size?

When we declare a union, memory allocated for a union variable of the type is equal to memory needed for the largest member of it, and all members share this same memory space. In above example, “char arr[8]” is the largest member. Therefore size of union test is 8 bytes .

Sizin İçin Seçtik  What is the meaning of carrier aggregation?

Leave a Reply

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