Session Details

Week 8, Session 22 — Tue Feb 3

Reading

  1. Schildt pages 4-5 (History, Middle-level)
  2. Pages 10-11 (keywords and main)
  3. Page 21 (declaring Variables)
  4. Page 23, bottom (String Constants and character literals)
  5. Pages 274-275 (Comments)
  6. Skim pages 212-219 (Using printf for formatted output)
  7. Pages 148-149 (Function Declarations and braces)
  8. Pages 63-67 (if, else, compound statemets, C's "true" and "false" values)
  9. Pages 76-86 (while loops)
  10. Pages 221-224 (obtaining input values using scanf)

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. [15 min] Formal Intro to C
  2. [50 min] Python-esque C Features
  3. [5 min] Break
  4. [10 min] Input with scanf
  5. [25 min] Nested loops in C

C Language Intro

HW Assigned

  1. HW 22