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 a rvalue?
Why are all header files not declared in every c program?
How can I get the current date or time of day in a c program?
What are header files and explain what are its uses in c programming?
How main function is called in c?
How do we open a binary file in Read/Write mode in C?
What is the use of #define preprocessor in c?
Explain about the functions strcat() and strcmp()?
What is zero based addressing?
What are the different properties of variable number of arguments?
What is identifiers in c with examples?
explain what is a newline escape sequence?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
Explain the binary height balanced tree?
The file stdio.h, what does it contain?