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 are shell structures used for?
Describe the modifier in c?
Is r written in c?
What is graph in c?
What the advantages of using Unions?
What is zero based addressing?
please send me the code for multiplying sparse matrix using c
Differentiate between #include<...> and #include '...'
Is there a way to switch on strings?
How to Throw some light on the splay trees?
What are register variables in c?
What is the difference between pure virtual function and virtual function?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What are file streams?
What is the use of volatile?