News for hackers. Stuff that matters.
Re:Everything I wish I knew when learning C by patrick451 on Tuesday November 29, 2022 @02:39AM (#33784695)
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.
Re:Everything I wish I knew when learning C by abareplace on Tuesday November 29, 2022 @07:26AM (#33786680)
Agreed. Complex declarations (e.g., array of pointers to functions) are non-intuitive:

http://www.ericgiguere.com/articles/reading-c-declarations.h...

https://cdecl.org/

I learned this from the book Expert C Programming by Peter van der Linden.

Re:Everything I wish I knew when learning C by teo_zero on Friday December 02, 2022 @01:47AM (#33827640)
I don't remember C using & in declarations. Is it a recent addition?