2074 12

CSC211 ยท 2074 ยท 5 marks

Differentiate between structure and union.

Differentiate between structure and union. [5]

Data Structures and AlgorithmsChapter 1: Introduction to Data Structures & AlgorithmsData types, Data structure and Abstract date type

Structure: A structure is a user-defined data type in C/C++ that creates a data type used to group items of possibly different types into a single type. Each member of a structure has its own separate memory location. Union: A union is also a user-defined data type similar to structure. However, ...