Session Details
Week 8,
Session 23 — Tue Oct 26
Reading
-
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
-
HW 21
Topics
-
Formal intro. to the C Programming Language
-
Some Python-esque features of C (below)
-
Using the stdio printf library function to print formated output
-
Strings vs character literals
-
More on function definitions including parameters and return types
-
Recap: example programs illustrating these C topics
-
Using a function's return value
-
if, if-else, else statements
-
Single statements vs. compound statements with { } as parts of loops, if statements
-
while loops
-
break statements
-
C's "true" and "false" values
-
Input of ints with scanf
Outline
-
[15 min] Formal Intro to C
-
[40 min] Python-esque C Features
-
[5 min] Break
-
[10 min] Input with scanf
-
[25 min] Nested loops in C
Resources
-
Slides C language introduction
HW Assigned
-
HW 23