What is structure within union?

A union is an object similar to a structure except that all of its members start at the same location in memory . A union variable can represent the value of only one of its members at a time. In C++, structures and unions are the same as classes except that their members and inheritance are public by default.

Sizin İçin Seçtik  What is object array in Java?

Leave a Reply

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