1.

What Is The Difference Between Structures And Unions?

Answer»
  • Conceptually structures and unions are same, the DIFFERNCE between them lies in their 'Memory MANAGEMENT' or in simple words the memory required by them.
  • Elements in structures are stored in CONTIGUOUS blocks, where as in unions the memory is allocated in such a way that the same memory allocated for one variable SERVES as its memory at one occassion and as memory for another varioable at some other occassion. 
  • Therefore, the basic difference lies in the way mrmory is allocated to both structures and unions.



Discussion

No Comment Found