Lancern's Treasure Chest
10:11 · Jun 28, 2024 · Fri
Daniel Lemire's blog
How much memory does a call to ‘malloc’ allocates?
Telegraph
|
source
Telegraph
How much memory does a call to ‘malloc’ allocates?
In C, we allocate memory on the heap using the malloc function. Other programming languages like C++ or zig often call on malloc underneath so it is important to understand how malloc works. In theory, you could allocate just one byte like so: char * buffer…
Home
Powered by
BroadcastChannel
&
Sepia