What is difference between Structure and Unions?

Showing Answers 1 - 1 of 1 Answers

yogeshpanda

  • Sep 22nd, 2005
 

The main difference between the Structer and the union is the memory allocation for it`s variables. The Structer allocates the memory that is equal to the sum of the size of all it`s data members, whereas the union allocates the memory that is equal to the size of the longest size data member of that union. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions