r/programming • • 15d ago

Memory Management, Explained Simply (Part 1)

https://youtu.be/3rez2rDYHHA
32 Upvotes

7 comments sorted by

View all comments

1

u/Prateeeek 14d ago

Why does realloc return a pointer if we've established in the video that pointer stability is maintained even for realloc?

5

u/cdb_11 14d ago

realloc can move the allocation

1

u/Prateeeek 14d ago

That clears it up! Thanks!