what is the defrenece between structure and union

Answer Posted / abhradeep chatterjee

all of you are correct. ya, structure is declared with the
keyword struct and structure
variables occupy individual memory location.But Unoin is
declared with the keyword union and its variables are
allocated to a memory at which the highest byte of the
variable which is declared.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is property type c?

853


When should a type cast not be used?

847


What is difference between union All statement and Union?

891


What is the purpose of 'register' keyword?

901


What is a keyword?

955


What is difference between far and near pointers?

809


What's the right way to use errno?

871


How can you pass an array to a function by value?

849


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1041


What does it mean when a pointer is used in an if statement?

873


Why c is called top down?

863


Describe wild pointers in c?

861


Can we increase size of array in c?

725


Can you apply link and association interchangeably?

901


Explain how do you determine whether to use a stream function or a low-level function?

859