What is an anonymous union and where to apply that ?
Answers were Sorted based on User's Feedback
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 |
Answer / priya
Anonymous unions are unions that are declared without a class-name or declarator-list.
union { member-list }
Such union declarations do not declare types
but they declare objects
They must also be declared as static if
declared in file scope. If declared in local scope
they must be static or automatic.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / monisha
anonymous union is a class name.it cannot be followed by
the declarator.it must be declared with the keyword
static.it cannot have protected and private members.
| Is This Answer Correct ? | 2 Yes | 0 No |
A woman had somany gloves and hats 22 red,34 blue, 45 white...there was power cut and she took a glove and how many gloves shud she take so that she gets a pair of glove fr each color??
any string of bits of length 'n' represents a unique non- negative integer between.............?
what is a static function
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What are the advantages and disadvantages of pointers?
What is a pointer variable in c language?
find second largest element in array w/o using sorting techniques? use onle one for loop.
15 Answers BitWise, Zycus Infotech,
How do I copy files?
C program to find frequency of each character in a text file?
Tell me what is null pointer in c?
What is a void pointer? When is a void pointer used?
What are reserved words?