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
2 Respostas
+ 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.
0
Search on YouTube there are many great explanation.