How to Get Fired Using Switch Statements and Statement Expressions
Updated Oct 27, 2016: Fixed sample code comments in coroutine example as per suggestion , edited text to note D's similar behaviour .
Visit blog.robertelder.org → On Hacker News Aug 2015 – Aug 2024
Software Engineering 15Tools & Productivity 10Hardware & Electronics 5Systems & Performance 4Programming Languages 3Math & Algorithms 2
Updated Oct 27, 2016: Fixed sample code comments in coroutine example as per suggestion , edited text to note D's similar behaviour .
In my attempts to learn the C programming language well enough to write my own C compiler , I've encountered some very interesting examples of C syntax that you generally don't see every day. All of these examples you'll see here will compile without warnings or errors even with very strict compiler flags in gcc and…
Updated 2018-01-21: Added clarification related to assertion about lack of context free nature of the C preprocessor.