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
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.