top | item 38745559

(no title)

wadd1e | 2 years ago

>So I'm wondering yet again: why do people find C pointers so difficult to grok?

For me, understanding pointers to data types was not the hard bit(int* or some_struct*), but wrapping my head around *array being a pointer to the first part of a contiguous segment of memory took a lot of time. Once that idea(and what ++array_pointer really did) settled in my head, pointers felt fairly normal to deal with.

discuss

order

No comments yet.