When do I use a union in C or C++, instead of a struct?

About this video

Hand-picked by a BrighterTube curator · found via round-3 back catalogue of a channel Lumen picks video by video · 82% confidence

Explains when and why to use unions instead of structs in C and C++, covering memory layout and use cases. Teaches aggregate type selection.

A 11-minute video from Jacob Sorber: “When do I use a union in C or C++, instead of a struct?”.

Video by Jacob Sorber, played through YouTube's embedded player.

Part of Beginner C Videos, Programming Videos