what is the difference between structure and union?
Answer Posted / karthikeyan
union is unified memory where structure is non unified memory.
all members of structure occupy consecutive chunks of
memory.but union members will share the most highest memory
of the union member.i.e data type.
we can access all the members of structure at a time.
but in union we can access a single union member at a time.
regards,
karthikeyan,
TRIOZTECH
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is c standard library?
What is wrong with this initialization?
What is a substring in c?
What is difference between %d and %i in c?
How do you list files in a directory?
Why functions are used in c?
What is sizeof in c?
What is the use of typedef in structure in c?
Why main is used in c?
Why do we use header files in c?
Is register a keyword in c?
Why dont c comments nest?
What does calloc stand for?
What is substring in c?
How do you define structure?