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
What are 3 types of structures?
What are the disadvantages of a shell structure?
Why do we use stdio h and conio h?
Why main is used in c?
What is the basic structure of c?
What does %c mean in c?
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
What is null pointer in c?
What is difference between main and void main?
What are the types of arrays in c?
What does %2f mean in c?
what is ur strangth & weekness
How do you define structure?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
how to print the character with maximum occurence and print that number of occurence too in a string given ?