2080 3

BIT102 ยท 2080 ยท 10 marks

Differentiate between structure and union? Write a program to read employ id, name, post and salary of employee and display detail of those employee whose post is 'clerk'.

Differentiate between structure and union? Write a program to read employ id, name, post and salary of employee and display detail of those employee whose post is 'clerk'.[10]

C ProgrammingChapter 9: Structures and UnionsDifferences between structure and union

--- Feature Structure Union --------- Keyword struct union Memory Allocation Each member gets its own separate memory All members share the same memory location Total Size Sum of sizes of all members Size of the largest member only Data Storage All members can store values simultaneously Only one...