The process of allocating memory at run time is known as dynamic memory allocation. The memory allocation functions in C are
1) malloc
2) calloc
3) free
4) realloc
malloc is used to allocate a block of memory whereas the calloc is used to allocate mutiple blocks of memory. Usually the calloc is used to allocate memory for derived data types like arrays and structure. free is the word used to releasing a used space from the memory. realloc is used to alter the size of a block which is already in use.
Arrays : https://www.youtube.com/watch?v=ctqNzk_V4LA&t=1024s
Structure : https://www.youtube.com/watch?v=5B5uLuKLvxs&t=101s
04:46 : malloc
08:07 : calloc
11:32 : free
12:50 : realloc
Please comment your suggestions & required topics.
Our E-mail id: [email protected]
Follow us in : https://www.facebook.com//LearnCseMalayalam