malloc in C

The malloc() function is part of the standard library and takes a number as an argument. When executed, malloc() attempts to retrieve designated memory segments from the heap and returns a pointer that is the starting point for the memory reserved The malloc() function returns a null pointer if it is unsuccessful in allocating memory … Read more