Structure & Union
In one of Algorithm Class we had, we have learnt about Structure and Union. Although we haven't learnt it more precisely or more deep. we have been thought what is structure and union. A structure is a user-defined data type available in C that allows to combining data items of different kinds. Structures are used to represent a record. And on the other hand, Union is a special data type available in C that allows storing different data types in the same memory location. You can define a union with many members, but only one member can contain a value at any given time. Unions provide an efficient way of using the same memory location for multiple purposes. there are some similarities between this two, such as both are user defined data types, both are objects of any type etc. but there are a difference such as how to define structure as struct and to define union we use union , there can only be first member on union can be initialized and there can be several on stru...