Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions


A union is a way of providing an alternate way of describing the same memory"static", or similar portion of the data is described first, and the portion
0 0 0
All the members of the structure can be accessed at
once,where as in an union only one member can be used at a time.
Another important difference is in the size allocated to a
structure and an union.
for eg:
struct example
int integer;
float floating_numbers;
the size allocated here is sizeof(int)+sizeof(float);
where as in an union
union example
int integer;
float floating_numbers;
size allocated is the size of the highest member.
so size is=sizeof(float);

0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts