0

what is difference b/w static and dynamic memory? simple and logical explaination plz

25th Dec 2016, 9:52 AM
Aqib Asmat
Aqib Asmat - avatar
1 Respuesta
+ 3
Static means that the memory for your variables is given when the program starts. This applies to global variables and variables qualified with static defined inside functions. Meaning that the size of it is fixed when the programme starts. Dynamic means you can control the exact size and the duration of these memory locations. Meaning that the size of the memory can be changed.
25th Dec 2016, 10:06 AM
Wen Qin
Wen Qin - avatar