Skip to content

Glossary: C Basics

malloc

Reserves that many bytes on the heap and returns a pointer to the first, or NULL if no memory is free. Always check the result, and free the block later.

Where the book teaches it

Related terms

Heapfreecallocrealloc