Structure is a user-defined data type that allows us to combine data of different types together. Unions are conceptually similar to structures. The only difference is in terms of storage. Union uses a single shared memory location which is equal to the size of its largest data member whereas in structures each member has its own storage location.