Lesson 19 of 50 · c
Unions
Duration: 7 mins
union shares the same memory location for all its members. Only one member can be active at a time.
union Data {
int i;
float f;
char c;
};
Lesson 19 of 50 · c
Duration: 7 mins
union shares the same memory location for all its members. Only one member can be active at a time.
union Data {
int i;
float f;
char c;
};