Unions provide an efficient way of using the same memory location for multiple purposes. Both are user-defined data types used to store data of different types as a single unit. Their members can be objects of any type, including other structures and unions or arrays .12 Eyl 2021