what is the defrenece between structure and union

Answer Posted / renuka

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 is declared.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where local variables are stored in c?

671


What is the difference between char array and char pointer?

649


Explain what are the __date__ and __time__ preprocessor commands?

751


How do you override a defined macro?

819


What is sizeof return in c?

726






How many levels of pointers have?

730


What is c definition?

875


Explain what is the difference between functions abs() and fabs()?

742


Can we change the value of static variable in c?

677


What is the purpose of main( ) in c language?

797


What is huge pointer in c?

708


What is a substring in c?

710


How was c created?

727


What is bin sh c?

718


What is stack in c?

766