More Fun with _Bool

Plenty of C coders implemented boolean variables long before the C99 standard introduced the _Bool type. Programmers defined TRUE and FALSE constants, they used char or short variables as toggles, or they manipulated bits in a byte to simulate binary and boolean operations. With all that going on, you’d think adding a boolean variable type to C and calling it bool would have been a no-brainer. It wasn’t.
Continue reading

Is continue Necessary?

On this blog, I try to show examples for all the C language keywords, but continue is one I struggle with. It doesn’t appear in Beginning Programming with C For Dummies. It barely appears in my C All-in-one Desktop Reference For Dummies. Even the venerable K&R manual has difficulty explaining how this keyword is worthy.
Continue reading