2081 12

BIT102 ยท 2081 ยท 5 marks

Write short notes on: a) Union b) Switch statement [0+2.5+2.5]

Write short notes on: a) Union b) Switch statement [0+2.5+2.5]

C ProgrammingChapter 9: Structures and UnionsUnion definition and initialization

A union is a user-defined data type in C that allows storing different data types in the same memory location. All members of a union share the same memory space, and the size of the union is equal to the size of its largest member. Syntax: Example: Key Points: - Only one member can hold a value ...