Introduction to Dynamic Memory Allocation

When we write a C program, we often know in advance how much memory we’ll need — for example, if we want to store 10 numbers, we simply declare an array of size 10.