Memory Allocation Functions
In C, memory can be allocated dynamically during execution of a program
This is a very necessary feature when we do not know (at the time of writing the program) how much memory is needed.
Examples:
How many elements are needed in an array.
Number of students in a class can be different for different classes.
This is a very powerful feature but can also lead to various runtime errors (null pointer exception etc.)
Conceptual view of memory
We can refer to memory allocated in the heap only through a pointer.
Accessing Dynamic Memory
Social Plugin