What is structure within union in C?

c structure unions. When a variable is associated with a union, the compiler allocates the memory by considering the size of the largest memory . So, size of union is equal to the size of largest member. so it means Altering the value of any of the member will alter other member values.

Sizin İçin Seçtik  What is untagged union?

Leave a Reply

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