Never Waste Your Memory, So use custom memory allocation with malloc() function and pointer to allocate memory dynamically, calloc(), realloc()

malloc() code:

calloc() code:

calloc vs malloc()

calloc initialized each byte with zero

realloc()
code:

 

theory vid: