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 the function of this pointer?
in linking some of os executables are linking name some of them
Define macros.
write a program to display all prime numbers
What is a void pointer? When is a void pointer used?
What are pointers? What are different types of pointers?
What is identifiers in c with examples?
Explain indirection?
What are run-time errors?
How a string is stored in c?
Which one would you prefer - a macro or a function?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is c language and why we use it?
What is c system32 taskhostw exe?
Can include files be nested? How many levels deep can include files be nested?