Computer Science, asked by NishmithaArjun, 1 year ago

Happy diwali friends....

what is the difference between structures and unions?

Answers

Answered by PoojaBurra
1

Structure is an user-defined data type in C that allows the user to combine data types of many kinds into a single type in block of memory.  

Structure can contain both simple and complex data types related to one another which otherwise won’t make sense.  

Special data type used in C that permits the user to store data types of different kinds in the same memory.  

Union is similar to a structure and can be defined by replacing the keyword ‘struct’ with the keyword ‘union’.  



NishmithaArjun: thank you friend.happy diwali
PoojaBurra: Same to u dear
Similar questions