Memory is storage unit which every program need for their
operation. When you run your program then a request is made to OS for memory
allocation. There are two types of memory allocations are used in programming.
- Static
- Dynamic
Static memory allocation is fix allocation. It cannot be change during run time. Static
memory allocation is better option in case when we know exactly how much amount
of memory need. For example holding roll number marks of student etc.