3 ms·
From my memory, the syntax of pointers really tripped me up. E.g., the difference between * and & in declaration vs dereferencing. I think this is especially co
by patrick451 4y ago
From my memory, the syntax of pointers really tripped me up. E.g., the difference between * and & in declaration vs dereferencing. I think this is especially confusing for beginners when you add array declarations to the mix.
- abareplace 4y agoAgreed. Complex declarations (e.g., array of pointers to functions) are non-intuitive: http://www.ericgiguere.com/articles/reading-c-declarations.html http://www.ericgiguere.com/articles/reading-c-declarations.h... https://cdecl.org/ https://cdecl.org/ I learned this from the book Expert C Programming by Peter van der Linden.
- teo_zero 4y agoI don't remember C using & in declarations. Is it a recent addition?