2081 12

C Programming20815 marksUnion definition and initialization

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]

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 ...

Up nextWhat is an array? How an array can be passed as function argument? Write a program to arra