Interesting Discovery I
Did you know that you can specify the
default:case in your switch statements anywhere, and not just at the end? You can use this to specify any of your existing cases to be the default case. Example:
switch(n) {
default:
case 0: printf("Hello, nothing.\n"); break;
case 1: printf("Hello, something!\n"); break;
}
Neato. Unfortunately this probably isn’t that interesting to you if you don’t know anything about C programming.