Differentiate structures unions separately?

Answer

Structures - A tool for handling a group of logically related data. For example::

struct book

{

char bookname

char authorname

int no_of_pages

}

This is a example of structure coz it is logically related to the object books but at the same time, it has diff data types - char int.

UNION:: It is juz a concept borrowed from structures. Diff between structure & union is storage. In structure, each member has its own storage location whereas all the members of a union use the same location. Union can handle only one member at a time, coz only one location is allocated for a union, var irrespective of size

Improve Answer Discuss the question "Differentiate structures unions separately?" Watch Question

First answer by ID995903066. Last edit by ID995903066. Question popularity: 9 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Databases > Differentiate structures unions separately?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Difference structures unions?  Diff between structures unions?  Differentiate structures unions?  Differenece structures and unions?  Differences between structures and unions?  What is advantages of Unions over structures?  Difference betweem structures and unions in c?  Difference between structures and unions in c?  What is the differnce between structures and unions?  What are the differences between structures and Unions?  What is the difference between structures and unions in C?