Distinguish between structure and union.
Feature Structure Union Definition A structure is a user-defined data type that groups related data items under a single name. A union is a user-defined data type similar to a structure, but it uses the same memory location for storing…