Explain the defination and declaration of union, C/C++ Programming

Explain the Defination and Declaration of Union?

Generally in terms the composition of a union may be defined as be as

union tag
{
member 1;
member 2;
member m;
};

Where union is a necessary keyword and the other terms have the same meaning as in a structure definition.

Individual union variables are able to then be declared as

storage-class union tag variable1, variable 2, ..., variable n;

Where storage-class is an elective storage class specifier, union is a needed keyword, tag is the name that appeared in the union definition and variable 1, variable 2, ..., variable n are union variables of type tag.

Posted Date: 6/13/2013 6:43:23 AM | Location : United States







Related Discussions:- Explain the defination and declaration of union, Assignment Help, Ask Question on Explain the defination and declaration of union, Get Answer, Expert's Help, Explain the defination and declaration of union Discussions

Write discussion on Explain the defination and declaration of union
Your posts are moderated
Related Questions
Write a program to print all the factors of a positive integer A

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

i am using otlv4 for database connecttvity, while i try to get all tables list from current database using query "$SQLTables" no output is displayed though programe compiles coretl

What does it mean to declare a 1.      member function as a virtual A: (a) C++ virtual function is member function of any class, whose functionality may be over- ridden in

# Dear I want help to programmer that write C++ code for my small project as soon as posible If we can help me?..

Define the Increment and Decrement Operators in c language? C offers two special operators -and ++ called decrement and increment operators respectively and these are unary ope


At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes


Write an algorithm for multiplication of two sparse matrices using Linked Lists.