The malloc() Call

This lesson teaches you the `malloc` call with the help of some examples.

We'll cover the following

The malloc() call is quite simple: you pass it a size asking for some room on the heap, and it either succeeds and gives you back a pointer to the newly-allocated space, or fails and returns NULL​.

Get hands-on with 1200+ tech skills courses.