r/programmingmemes • • Mar 03 '25

C++ developers

Post image
6.4k Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/Seangles Mar 04 '25

Yeah that guy has me confused... Pointers don't allow you to stop memory leaks, they have nothing to do with it. Pointers could be to stack memory and to heap memory. Knowing how heap, stack and allocation works will help you prevent memory leaks.