Session Details

Week 8, Session 22 — Mon Feb 1

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

Outline

  1. [10 min] Exam results
  2. [15 min] Formal Intro to C
  3. [40 min] Python-esque C Features
  4. [5 min] Break
  5. [10 min] Input with scanf
  6. [25 min] Nested loops in C

C language intro

HW Assigned

  1. HW 22