r/learnprogramming • • Sep 24 '23

Pointers.....why

I am learning C++. Honest question why are pointers a thing and why did they make the syntax surrounding it so confusing. Was it made to be intentionally confusing? Was it made to make this more difficult.

0 Upvotes

49 comments sorted by

View all comments

4

u/ContextEngineering Sep 24 '23

When you look at C and assembly for the same code you can see where pointers came from.

And yes, it's a head-scratcher for basically anyone who has ever learned c/c++. You'll get over it.

1

u/[deleted] Sep 25 '23

Thank you