
Void Pointer in C Demystified
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 ? https://www.patreon.com/GaryExplains ?
Twitter: https://twitter.com/garyexplains
Instagram: https://www.instagram.com/garyexplains/
#garyexplains
---
⭐ 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 ? https://www.patreon.com/GaryExplains ?
Twitter: https://twitter.com/garyexplains
Instagram: https://www.instagram.com/garyexplains/
#garyexplains
Gary Explains
Gary tries his best to explain how stuff works....