Quantcast
Channel: C
Viewing all articles
Browse latest Browse all 46

C Memory Allocation

$
0
0
When an ELF executable is executed, a process is created and its process image is create in the RAM. However, it is here in the process image in RAM, all the variables are assigned memory. Sometimes memory is allocated statically i.e. defined how much memory at the compile time, and at times it has to be allocated dynamically. Where, it is specified at run time the amount of memory needed.

Static Memory Allocation



First of all, please note, static memory allocation is not...

C Memory Allocation

Viewing all articles
Browse latest Browse all 46

Trending Articles