Amplifying Bart's explanation about C switch statements, it helps to remember that C was designed to be a step above assembly language. So remember your basic assembly language coursework when you talked about jump tables? The C switch statement is just pretty syntax for a jump table.

(If you really want to bend your brain, go look up Duff's Device.)

Ian


_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to