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

Explain two-dimensional array.

838


What is wrong with this program statement?

808


When should I declare a function?

837


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

985


please send me the code for multiplying sparse matrix using c

1951


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

923


Why do we use main function?

917


How does normalization of huge pointer works?

902


How can I delete a file?

850


What is the explanation for the dangling pointer in c?

905


Is c a great language, or what?

869


Do character constants represent numerical values?

1091


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1873


What is the value of h?

818


Explain can you assign a different address to an array tag?

867