Session Details

Week 8, Session 23 — Tue Oct 26

Reading

  1. Kochan, Chapters 3-8, and page 426. Much of this is review. Skim the text and focus on the code examples. Skip p. 12, 84-92, middle of 108 - 117, and 138 - 161.

HW Due

  1. HW 21

Topics

  1. Formal intro. to the C Programming Language
  2. Some Python-esque features of C (below)
  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. [15 min] Formal Intro to C
  2. [40 min] Python-esque C Features
  3. [5 min] Break
  4. [10 min] Input with scanf
  5. [25 min] Nested loops in C

Resources

  1. Slides C language introduction

HW Assigned

  1. HW 23