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
Create a program WordCount1Main.java doing the following:  For each word in the le word.txt { Create an object of the class Word { Add the object to a set of the type java.uti

2-D Array- C program: Define a two dimension array using c. void convert ( int a[10][10] , int[] , int , int); void main()   {   clrscr();   int a[10][10], b[10

Compiler Design - Limit In The Method Instructions

One person who is specialist at programming and solving problems with a computer Project Description: Potential computer, hardware, programming and software genius, I look

We need an E Commerce site likefifacointrader. you must have experience with that kind of work You have to show a sample of work like that site. Skills required are C Prog

Explain about the Constants in c language? The Constants in C refer to fixed values that don't change during the execution of a program. C has four fundamental types of constan

Write a program that writes your name on the monitor ten times. Write this program three times, once with each looping method.

C language lets us do this in a structure definition by putting: bit length after the variable that is. struct packed_struct { unsigned int f1:1; unsigned int f2:1; unsigned

Project Description: Project is related indexing data related some data structure. I need to share all information related project later if i contact any body Skills required