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

Differentiate between a for loop and a while loop? What are it uses?

663


What are the scope of static variables?

597


Should I learn data structures in c or python?

576


write a c program to find the sum of five entered numbers using an array named number

1617


In C programming, how do you insert quote characters (‘ and “) into the output screen?

889






What is the difference between printf and scanf )?

587


all c language question

1864


Why should I use standard library functions instead of writing my own?

668


Why c is a procedural language?

578


What is unsigned int in c?

551


What is the purpose of ftell?

595


How are variables declared in c?

597


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1459


What is conio h in c?

622


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1862