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 %lu in c?

912


Where are the auto variables stored?

851


What is double pointer?

757


What are the types of c language?

770


Is void a keyword in c?

753


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

985


How are variables declared in c?

834


What is sizeof in c?

762


What are shell structures used for?

786


What is a program?

913


What is string constants?

881


Explain how can I right-justify a string?

812


Write program to remove duplicate in an array?

809


What is the easiest sorting method to use?

822


What are the benefits of organizational structure?

775