What is structure and union with example?

A structure contains an ordered group of data objects . Unlike the elements of an array, the data objects within a structure can have varied data types. Each data object in a structure is a member or field. A union is an object similar to a structure except that all of its members start at the same location in memory.

Sizin İçin Seçtik  What is the use of unions in C?

Leave a Reply

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