Session Details

Week 8, Session 22 — Tue Jan 31

Prep

  1. Take-home Quiz
  2. (3:40) Why C? [local] [slides]
  3. (3:56) Strings and Printf [local] [slides]
  4. If and While [local] [slides]
  5. (2:49) Scanf [local] [slides]
  6. Worked example: Menu [local] [slides]

HW Due

  1. HW 21

Topics

  1. Formal intro. to the C Programming Language
  2. Some Python-esque features of C
  3. Using the stdio printf library function to print formated output
  4. Strings vs character literals
  5. More on function definitions including parameters and return types
  6. Recap: example programs illustrating these C topics
  7. Using a function's return value
  8. if, if-else, else statements
  9. Single statements vs. compound statements with { } as parts of loops, if statements
  10. while loops
  11. break statements
  12. C's "true" and "false" values
  13. Input of ints with scanf

Outline

  1. [5 min] Questions
  2. [100 min] Work time

Resources

  1. Essential C
  2. Python vs. C comparison document

HW Assigned

  1. HW 22