|
| Total Answers and Comments: 5 |
Last Update: September 10, 2008 Asked by: sathishkumar |
|
| | |
|
Submitted by: rashmi.mohanty Difference are: 1. union allocates the memory equal to the maximum memory required by the member of the union but structure allocates the memory equal to the total memory required by the members.
2. In union, one block is used by all the member of the union but in case of structure, each member have their own memory space.
3. union is best in the environment where memory is less as it shares the memory allocated.But structure can not implemented in shared memory.
4. As memory is shared,ambiguity are more in union,but less in structure.
5. self referencial union can not be implemented in any datastructure ,but self referencial structure can be implemented.
Above answer was rated as good by the following members: pankajzalera14 | Go To Top
|