The "Compound literals are lvalues" is one that caught me out recently.
I've been doing C a long time and thought I knew all the "decent" tricks. When I saw it, I went "Oh, that's one of the silly new dynamic features that I ignore."
Nope.
It's been in the language forever. I'm surprised I never tripped over it before given all the embedded work I do.
I've been doing C a long time and thought I knew all the "decent" tricks. When I saw it, I went "Oh, that's one of the silly new dynamic features that I ignore."
Nope.
It's been in the language forever. I'm surprised I never tripped over it before given all the embedded work I do.