3 ms·
I have been C programming on and off for 20 years, and thought I know every trick. But no.
by nicky0 10y ago
I have been C programming on and off for 20 years, and thought I know every trick. But no.
- beeforpork 10y ago20 years it is for me, too. And the exact rules of integer constants and their exact type have puzzled me lately. So I was not surprised to find more tricks for countof() here, to make it more safe to use. Nice! Also, typechecking macro arguments with ?: is quite interesting, check it out. :-)