Chapter Index | Slide Index | Frames [ Windows ] | Narrative On | <- prev | next -> |

Code Examples

  1. Code to sum the elements of an array
  2. Code that reads integers until EOF or a non-int is encountered
  3. Code to skip clearspace in input
  4. Code to execute commands based on user selection from from a menu of choices
  5. Code to perform mutually exclusive actions based on the value of an enumerated type
  6. Code illustrating use of "early return" or "bailout" in function implementations
  7. Code with an "error" that was an intentional attempt to intruduce a trap door into the Linux kernel.

<- prev | next -> | Top of Page | 2. Execution Control in C/C++ - 9 of 9