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 aprogram in c++ to overload +,-,=,++ operator using unary and friend function in a single program

Provide me the answer, Can a constructor throws an exception? How to handle the error when the constructor fails?



C Program for FUNCTION OF COPY ONE STRING IN OTHER STRING #include stdio.h> #include conio.h> int copy(char a[],char b[]); void main() {           char a[100],b[

color representation 0,1,2,3,4,5,6,7...

#questiowrite a program to calculate e^x

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. The area under a curve between two points can b

hello i have about 15 hours the dead line I Need a program in c language that''s determine the router ip or the gateway ip of the current NIC example the router ip is: 192.168.1.1

This assignment builds on Homework 3. The two major modifications are the instruction of pointers and the calculation of mortgage interest rates. Requirements for Project 2: