|
|
|
|
|
by lelanthran
253 days ago
|
|
> Are pointers really that hard for so many people to understand? Apparently they are; I believe it's the indirection that gets people. Most learners aren't really taught basics properly - they learn that a variable "contains" a value, when instead they should learn that all values have a type, and some variables hold values. > I'm not trying to brag it took me I think like 15 minutes to grok them from learning about them the first time. I can't remember not knowing pointers, so I can't really tell you how long it took for it to click, but I do know that I had done a non-trivial amount of assembly before I used C, so maybe that helped/. |
|
It seems a lot of people assume that pointers don't actually consume any memory and then get confused trying to understand it that way.