What is an anonymous union and where to apply that ?

Answer Posted / swetcha

An anonymous union is a union without a name. It cannot be
followed by a declarator. An anonymous union is not a type;
it defines an unnamed object.

The member names of an anonymous union must be distinct
from other names within the scope in which the union is
declared. You can use member names directly in the union
scope without any additional member access syntax.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which control loop is recommended if you have to execute set of statements for fixed number of times?

801


how to write optimum code to divide a 50 digit number with a 25 digit number??

2739


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1484


Write a program for finding factorial of a number.

621


What is your stream meaning?

589






Where does the name "C" come from, anyway?

630


What math functions are available for integers? For floating point?

614


What are the types of pointers in c?

521


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2145


Explain what is a static function?

624


What does the c in ctime mean?

557


What is a floating point in c?

589


What are the primitive data types in c?

561


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1482


In a switch statement, explain what will happen if a break statement is omitted?

616