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

How can you determine the maximum value that a numeric variable can hold?

953


Explain why C language is procedural?

1010


What is the difference between char array and char pointer?

808


How do you search data in a data file using random access method?

1124


What are file streams?

804


What is the main difference between calloc () and malloc ()?

888


What are near, far and huge pointers?

874


What are identifiers and keywords in c?

820


What should malloc() do?

886


C language questions for civil engineering

1507


How do I send escape sequences to control a terminal or other device?

874


How do you use a pointer to a function?

893


What are the two forms of #include directive?

907


What are the types of operators in c?

845


how could explain about job profile

1693