What is union vs struct?

A struct is a block of memory that stores several data objects, where those objects don’t overlap. A union is a block of memory that stores several data objects , but has only storage for the largest of these, and thus can only store one of the data objects at any one time.

Sizin İçin Seçtik  Does 5G work on spectrum?

Leave a Reply

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