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 does typedef struct mean?

797


In c programming language, how many parameters can be passed to a function ?

772


What is the correct code to have following output in c using nested for loop?

721


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1661


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1610






What are the advantages of the functions?

762


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1385


Explain bit masking in c?

803


How do you print an address?

882


What is meant by type specifiers?

815


What is the difference between new and malloc functions?

685


What does the message "automatic aggregate intialization is an ansi feature" mean?

825


What is variable in c example?

736


What is logical error?

754


What is a function simple definition?

759