What are the applications of unions in C?

C unions are used to save memory . To better understand an union, think of it as a chunk of memory that is used to store variables of different types. When we want to assign a new value to a field, then the existing data is replaced with new data.

Sizin İçin Seçtik  What is the real use of union?

Leave a Reply

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