C Advanced Lesson 1 of 15

C malloc, free and the heap

25 min, 4 exercisesCode

The program cannot know how much memory it needs until it is already running.

You've reached the good stuff.

4 exercises, checked as you type.

  • All 4 courses
  • Projects
  • Bug hunts
  • No ads

See what’s included

Sign in

C, 32-bit: int and pointers are 4 bytes