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
Given a bool variable isReadable write some statements that assign true to isReadable if the file "topsecret" exists and can be read by the program and assigns false to isR

wap to calculatethe volume of cone,cylinderand sphere

What is the specialty in sizeof() operator

Write a program to act as an electronic safe. If the correct code has been entered the program should display "Safe Open".  If an incorrect code is input it should display "Alarm"


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

palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindromes

If you have computed a number (stored as a ?oating-point value) and want to display this on a plot (i.e. as a character string) you have to convert it into a STRING. That is we wan

Blanche has a fashion design company called BLB_Best_Clothing Pty. That she has just opened recently

A: No. Syntax wise it is permitted. But then the function is no longer Inline. Since the compiler will never know how deep the recursion is at compilation time.