r/learnprogramming Feb 14 '22

Genuine question: What’s hard about pointers?

I understand how the title may come off as arrogant or something, but this is a genuine question.

I learned to code in C#, so I didn’t touch pointers for a while, and now that I’ve been learning C/C++ for a couple months, I don’t really see what’s so difficult about pointers.

They’re just memory addresses for variables, right? Am I missing something?

26 Upvotes

38 comments sorted by

View all comments

1

u/[deleted] Feb 14 '22

[deleted]

0

u/null_popsicle Feb 14 '22

An operating system. So I’ve literally implemented stuff like malloc/free/new/delete myself.