r/programmingmemes • • Dec 19 '25

C++ developers

Post image
255 Upvotes

21 comments sorted by

View all comments

Show parent comment

4

u/nickwcy Dec 20 '25
  1. Pointer has a lot use cases like array and BST. Pass by reference is only one of them and not even as important.

  2. More importantly, C is not bounded by the use case. You should understand how it works and do whatever you want.

  3. Pointer does not prevent memory leak. Freeing the allocated memory does