C in 100 Seconds: Unions — Shared Memory One Field at a Time | Episode 25
0views
002:36
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
A union looks like a struct but all members share the same memory. Only one field is valid at a time. Set the int and it overwrites the float. The size equals the largest member.
Student code: https://github.com/GoCelesteAI/c-in-100-seconds/tree/main/episode25
#c #programming #100seconds #learnc #unions #sharedmemory #sizeof #tutorial
Tags
100 secondsc tutorial 2026c unionslearn cshared memory csizeof unionunion vs struct
Back to tutorialsOpen in YouTube
Duration
2:36
Published
April 10, 2026
Added to Codegiz
April 10, 2026
Categories
cunionsshared-memory100seconds