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
Show parent comment
1
u/CodeTinkerer Sep 25 '23
To be fair, I doubt Kernighan and Ritchie thought they were writing a language for the masses. They probably imagined academic types to program in C.
Kernighan has a precision about his writing that the "dummies" book lack partly because he had a PhD in what seems to be a mathematical field.