What is a union in C++?

A union is a user-defined type in which all members share the same memory location . This definition means that at any given time, a union can contain no more than one object from its list of members.

Sizin İçin Seçtik  What are the uses of union?

Leave a Reply

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