Google News
logo
C-Language - Interview Questions
What are Unions In C Language ?
Unions are conceptually similar to structures. The syntax of union is also similar to that of structure. The only difference is in terms of storage. In structure each  member has its own storage location, whereas all members of union use a single shared memory location which is equal to the size of its largest data member.

Example :
      union item 
      {
      int m;
      float x;
      char c;
      }It1;
Advertisement