Explain dynamic memory allocation functions?
: 547
Dynamic memory allocation has three functions for allocating memory.
- malloc(): ptr = (cast-type*) malloc(byte-size);
- calloc(): ptr = (cast-type*)calloc(n, element-size);
- realloc(): ptr = realloc(ptr, newsize);