Void Pointer in C Demystified
Gary Explains
0:00 / 0:00
Void Pointer in C Demystified
8 346 просмотров · 11 месяцев назад
Gary Explains
352 тыс. подписчиков
8 346 просмотров · 11 месяцев назад
Demystify void pointers in C. I start with a quick pointer refresher, then explain how a void pointer has no type size (so you can’t dereference it), how allocators (malloc/calloc/realloc/free) use it to return typeless memory, and the right way to cast and use that memory safely.
---
⭐ Please support my channel on Patreon!
Get early access to videos, members-only content, behind-the-scenes updates, and join the Gary Explains Discord! Join here 👉 / garyexplains 🙌
Twitter: / garyexplains
Instagram: / garyexplains
#garyexplains