what is the defrenece between structure and union

Answer Posted / shruti

Kapildalke -> u are rite..

the differance between a structure and union is that,

in structure memory is allocated to each and every element
of the structure.

in union memory allocated is only of the element which
requires maximum memory.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is using exit() the same as using return?

820


Can you write the function prototype, definition and mention the other requirements.

805


What are two dimensional arrays alternatively called as?

795


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

900


How can you access memory located at a certain address?

776






State the difference between x3 and x[3].

769


What is switch in c?

776


What does the file stdio.h contain?

740


Explain what is the benefit of using #define to declare a constant?

738


Why is c called "mother" language?

981


What are global variables and explain how do you declare them?

728


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1587


Which function in C can be used to append a string to another string?

784


What are formal parameters?

786


Is there a built-in function in C that can be used for sorting data?

902