Example & Tutorial understanding programming in easy ways.

What is the static and Dynamic memory allocation?

- Basically, Static memory are allocated at compile time like int var;

- or dynamic memory is allocated at run time by malloc function.

-Static memory allocation uses more memory space to store a variable

-Static memory allocation is used in arrays & dynamic memory allocation is used in Linked Lists.

Read More →