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  Elektrikli araçlar hangi amaçlar için kullanılır?

Leave a Reply

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