3 ms·
Pointers are a really common stumbling block for a lot of people, maybe because it's a memory address stored in memory (at a different address). If you've writ
by TillE 3y ago
Pointers are a really common stumbling block for a lot of people, maybe because it's a memory address stored in memory (at a different address).
If you've written a little assembly, you understand all this stuff and there are no deeper secrets.
- randomdata 3y agoPerhaps it helps that C was my first exposure? As it conceptualizes memory as an array, a pointer was naturally conceptualized as an array index. There was no real novelty in that. But maybe we're talking more abstractly, outside of computing? I watched my children start to learn about lists and indices around the age of four to five. Presumably the story was similar for me. If there was a mind-blowing experience at that time, it is true that I have forgotten about it (along with most other things that happened back then).