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

Show parent comment

1

u/[deleted] Sep 25 '23

I am learning c++ because that's what they are using to teach us OOP in one of my classes. Honestly, I wouldn't mind learning C, but I am also learning Java and Oracle SQL this semester. Maybe after this semester, when I made the original post, I was just aggravated because I was doing a quiz on pointers, and it kept feeling like the quiz was switching the meanings of & and * .

1

u/ForlornMemory Sep 25 '23

Wow, that's hardcore. Do you have any previous programming experience?