| ▲ | Zak 5 hours ago | |||||||||||||
Pointers are famously difficult to learn and reason about even though the basic principles are simple. Programming in a style that requires direct manipulation of pointers when it's not actually necessary is usually regarded as unwise because it's so hard to get right. | ||||||||||||||
| ▲ | mhjkl 5 hours ago | parent | next [-] | |||||||||||||
OP had no problem with pointers prior to trying C++. I think there is a case to be made that C(++) makes pointers unnecessarily confusing and there is no real disconnect between understanding pointers in theory and in practice otherwise | ||||||||||||||
| ||||||||||||||
| ▲ | t-3 an hour ago | parent | prev | next [-] | |||||||||||||
Pointers aren't hard, it's C/C++ that make them complicated. Addresses and indirection in any assembly language are simple and straightforward, easy and even intuitive once you start actually writing programs. | ||||||||||||||
| ▲ | KellyCriterion 4 hours ago | parent | prev [-] | |||||||||||||
...thats the reason why I love managed environments like C#/Java/etc :-)) | ||||||||||||||