DEV Community

Heap vs Stack Allocation

Gustavo Reis Bauer on February 05, 2024

Heap Memory and Stack Memory So before talking anything about stacks, heaps and dynamic memory management, I believe it is really useful...
Collapse
 
pauljlucas profile image
Paul J. Lucas

Your first two examples are not valid C code. C has no let nor function keywords nor does it allow inline JSON.

Collapse
 
gustrb profile image
Gustavo Reis Bauer

Yea, I know, I will mention it now, my first two examples are both written in JavaScript, good catch, I will add it to the post.
These posts are my notes from college, from a few years ago, so they probably aren't as complete as they could be :P