write the difference between structure and union. compare them with the help of an example.
Answers
Answered by
1
Answer:
Explanation:
A structure is a user-defined data type available in C that allows to combining data items of different kinds. Structures are used to represent a record. A union is a special data type available in C that allows storing different data types in the same memory location.
Similar questions
Social Sciences,
5 months ago
Math,
5 months ago
Biology,
5 months ago
World Languages,
10 months ago
Math,
10 months ago
Environmental Sciences,
1 year ago
Computer Science,
1 year ago