|
[2010-05-20] Dissecting Duff's Device One of the most confusing pieces of code I have ever had a chance to look at is Duff's Device. At first glance, it seems that your compiler would laugh at you for attempting such a feat. For those of you who haven't yet been introduced to this programming marvel, I suggest you sit down before reading on.
[2010-05-07] To Switch, or Not to Switch When it comes to making selections in C programming, the obvious first choice of most programmers is the if,else combination. This can become a hassle when there are multiple choices with different or similar outcomes. A simple example of this is outputting the number of days in a month. You could do:
|