Session Details
Week 8,
Session 22 — Tue Oct 28
Reading
-
Schildt pages 4-5 (History, Middle-level)
-
Pages 10-11 (keywords and main)
-
Page 21 (declaring Variables)
-
Page 23, bottom (String Constants and character literals)
-
Pages 274-275 (Comments)
-
Skim pages 212-219 (Using printf for formatted output)
-
Pages 148-149 (Function Declarations and braces)
-
Pages 63-67 (if, else, compound statemets, C's "true" and "false" values)
-
Pages 76-86 (while loops)
-
Pages 221-224 (obtaining input values using scanf)
HW Due
-
HW 21
Topics
-
Formal intro. to the C Programming Language
-
Some Python-esque features of C
-
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
-
[50 min] Python-esque C Features
-
[5 min] Break
-
[10 min] Input with scanf
-
[25 min] Nested loops in C
C Language Intro
HW Assigned
-
HW 22