Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Are pointers really that hard for so many people to understand?

Yes. Especially pointer to pointer to ...

The big problem is that arrays are conflated with pointers because C doesn't do slices. If C had slices, people would naturally avoid pointers except in the cases where they were genuinely necessary. That would make teaching pointers vastly easier.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: