Memory stack notes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Memory stack notes

does any one have a better documentation about stack in memory and how it works and maybe explained very well for beginner because i started learning c on sololearn but i got stuck on function used in memory management and i think its better to know how memory works before studying c and include some basic assembly code for beginner

20th Sep 2018, 8:14 AM
Crispy N. Christian
Crispy N. Christian - avatar
2 Answers
+ 1
Stack and heap memory management is a quite advanced topic for beginners. So, I think at first, you don't need to know too much about them. Just search for basic explanation about the topic such as stack is used to store value type variables used in a function, heap is used to store dynamically allocated variables (the ones created with 'new' or 'malloc'). You don't have to know too much about it, just use it, and remember to delete or free the dynamically allocated variables. That's it. The runtime system or the operating system will take care the rest for you.
20th Sep 2018, 11:34 AM
Rocky Lee
Rocky Lee - avatar
0
Search on YouTube there are many great explanation.
20th Sep 2018, 9:09 AM
Akib
Akib - avatar