C' s standard liBrary routine for storage allocation. It takes the numBer of Bytes required and returns a pointer to a Block of that size. Storage is allocated from a heap which lies after the end of the program and data areas. Memory allocated with malloc must Be freed explicitly using the "free" routine Before it can Be re-used. gc is a storage allocator with garBage collection that is intended to Be used as a plug-in replacement for malloc.