Hi guys! I would realy appreciate it if i get some deep explanation the concept of static and dynamic memories! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Hi guys! I would realy appreciate it if i get some deep explanation the concept of static and dynamic memories!

static memory

26th Jan 2017, 11:48 PM
Dickens
Dickens - avatar
5 Answers
+ 4
My understanding is that yeah there exists both Static and Dynamic memories! And that memory is divided into two parts; STACK which forms the static memory and it is from which the local variables obtain their memory! HEAP that forms the dynamic memory which is a set of unused memory in a program that is dynamically allocated when while the program is running. I guess I have to dig deep on this so as to get it more clearer!
27th Jan 2017, 12:17 AM
Dickens
Dickens - avatar
+ 2
Did you tried to learn it anywhere? what exactly you mean and dont understand? try to ask your question more specific.
27th Jan 2017, 12:02 AM
mikulov
mikulov - avatar
+ 2
try to read answers from that link: https://www.quora.com/What-is-dynamic-memory-allocation-and-static-memory-allocation if you wont get it, try to divide your understanding into steps. take for example JVM and how it works. How it proccessing byte code and more. if you still wont get it, i'll try to find or write example code and understand it in video with comments :)
27th Jan 2017, 12:26 AM
mikulov
mikulov - avatar
+ 2
thank you @mikulov
27th Jan 2017, 12:28 AM
Dickens
Dickens - avatar
+ 1
i didnt helped much :) and i looked your profile, you trying to learn multiple languages at one time, and still didnt completed no courses. try to stick to only one language and you dont need to understand about memory this time. i can recommend you to try write code and learn algorithms and math. start from fibonacci numbers for example. try to get the value of 10^7 fibonacci's number in less then 30 seconds ;)
27th Jan 2017, 12:34 AM
mikulov
mikulov - avatar