+ 2
static memory allocation is the memory you allocate to during writing(memory allocation by compiler) of program and this can't be changed later in runtime. eg. int var; 16/32 bytes will be allocated depending on your machine. whereas dynamic memory allocation is the memory during runtime. it's done by using various functions in various programming languages.
6th Jan 2018, 1:47 PM
Sachin
Sachin - avatar