27 / 123
What are the differences between a structure and a union?
Structure- It is an user defined data function that allow to store multiple type of data in a single unit.
It occupies sum of memory of all location.
Whereas, Union- It is also an user defined data function that allow to store multiple type of data in a single unit.
But it occupies memory of largest member only.
Asked In ::
Sanu
13 Oct, 2019 1:07 PM
Structure- It is an user defined data function that allow to store multiple type of data in a single unit.
It occupies sum of memory of all location.
Whereas, Union- It is also an user defined data function that allow to store multiple type of data in a single unit.
But it occupies memory of largest member only.
Sanu
13 Oct, 2019 1:07 PM
Structure- It is an user defined data function that allow to store multiple type of data in a single unit.
It occupies sum of memory of all location.
Whereas, Union- It is also an user defined data function that allow to store multiple type of data in a single unit.
But it occupies memory of largest member only.