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 compute the following equation for values of time.           y = 2x+3   The values of time are stored in the file program.dat and the solution should be display

I started preparing an alternative cryptocurrency and I am way over my head. I would like help in making modifications to the open source files and then help with deployment. I wil

A: This is a name that acts as an alias, or alternative name, for a beforehand defined variable or an object. prepending variable along with "&" symbol makes it as reference. fo

Explain Processing A Data File? Mainly data file applications needs that a data file be altered as it is being processed. For instance in an application involving the processin

Memory Management Operator In C malloc( ), calloc( ), realloc( ), and free( ) are used to mange dynamic memory.  In addition to these function C++ have derived two unary ope

FIT 3042 System Tools and Programming Languages Semester 1 2013 Assignment 1 An SDL video player for a custom video format Worth: 20% of final mark. Must be completed individually

Draw pie chart in c++ program: int main() {                 char cmd;                   cout                 cout                 cmd = toupper(getch());

Design and implement a library system that does the following: ? Takes details of a student/library users: first name, last name, other names, user ID number, and nationality. Th

given number is prime or not

Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number