DYNAMIC MEMORY
ALLOCATION
Dynamic Memory Allocation is a runtime allocation . In other programs we declare a fixed size of
a variable or an array . Many time in later user may need a bigger size memory than the declare memory size . We can overcome from this using Dynamic memory allocation functions . Main functions of Dynnamic memory allocation are -
1. malloc()
2.calloc()
3.realloc()
4.free()
first threee functions are type of memory allocation function and 4th function is memory deallocation function . To use this function we neeed a header file , --
#include<alloc.h>
ALLOCATION
Dynamic Memory Allocation is a runtime allocation . In other programs we declare a fixed size of
a variable or an array . Many time in later user may need a bigger size memory than the declare memory size . We can overcome from this using Dynamic memory allocation functions . Main functions of Dynnamic memory allocation are -
1. malloc()
2.calloc()
3.realloc()
4.free()
first threee functions are type of memory allocation function and 4th function is memory deallocation function . To use this function we neeed a header file , --
#include<alloc.h>
0 Comments