C Advanced Lesson 3 of 15

Memory ownership in C

30 min, 5 exercisesCode

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

The rest of this lesson is locked.

5 exercises, checked as you type.

Sign in

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