What is union in C give example?

A union is a user-defined type similar to structs in C except for one key difference . Structures allocate enough space to store all their members, whereas unions can only hold one member value at a time.

Sizin İçin Seçtik  Is there a desktop version of Udemy?

Leave a Reply

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