Re:Declaring C String Constants
by Zelizz on Wednesday May 17, 2017 @06:12PM
(#14363282)
Imagine all memory is a big array. A pointer is just an index into that array. A pointer dereference is like accessing something at an array index. A pointer to a pointer is array index to a location where you'll find another array index.
[ Parent
| on HN ]
I understand pointers conceptually. It's the syntax (in C specifically) that is giving me trouble. I am fine with pointers in ASM.
Re:Declaring C String Constants
by iainmerrick on Thursday May 18, 2017 @11:33AM
(#14368088)
Hmm, it's been a long time since I read it, but this sounds like something that good old K&R probably does well. It's famously short and well-written.
It's old-fashioned but I assume (maybe others can correct me) the latest edition is up to date enough that it won't teach you any outright bad habits.