Allocating and Deallocating Memory Dynamically using malloc and free




This video made by the learning lad explains the malloc and free functions in c.

you will learn the syntax of malloc function and free functions, what are the parameters required for the malloc and free functions, how malloc function allocates the bytes of memory from the heap,how free function frees the allocated memory.

You will learn how to create the pointer and allocate the memory dynamically for integers,float and character datatype, and also learn how to allocate the memory dynamically depending on the user input to store a string  in detail with an example.