C Allocate Memory

The process of reserving memory is called allocation. The way to allocate memory depends on the type of memory.

C has two types of memory: Static memory and dynamic memory.

Static Memory

Static memory is memory that is reserved for variables before the program runs. Allocation of static memory is also known as compile time memory allocation.

C automatically allocates memory for every variable when the program is compiled. Continue reading C Allocate Memory