News for hackers. Stuff that matters.
Re:‘Abusing’ the C switch statement – beauty is in the eye o... by lentil_soup on Thursday February 02, 2017 @12:15PM (#13552216)
If you're an aspiring C programmer don't worry about these weird quirks. Don't believe that you need to know that to use C. A switch statement with "neat little breaks and default" is more than what you'll need 99% of the time.
Re:‘Abusing’ the C switch statement – beauty is in the eye o... by iainmerrick on Thursday February 02, 2017 @12:44PM (#13552575)
The remaining 1% is a big comment reading "/* FALL THROUGH */" instead of a break. Once you know what break does, you should know what happens when you leave it out (and why you might want to).

The remaining 0% is stuff like Duff's Device.