C Advanced Lesson 3 of 15

Memory ownership in C

35 min, 5 exercisesCode

Two functions have a pointer to the same memory, and each one thinks the other will free it.

You've reached the good stuff.

5 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