Chemistry, asked by aditikumari86, 10 months ago

write the difference between structure and union. compare them with the help of an example.​

Answers

Answered by minumishra586
0
  • Structurs are used to represent a record. Ex- a newly built home, the arrangement of DNA elements.
  • A union is a special data type available in C that allows storing different data types in the same memory location. Ex- in the following C program, both both x and y share the same location. If we change the x, we can see the changes being reflected in Y.
Similar questions