Course Segment
| Session ID
| Session Title
| Session Resources
| Session Notes
|
|
module 010: Functions, Addresses, Arrays,and Testing |
---|
1: intro. | Function Prototypes and an Overview of Functions, Arrays, and Addresses | Reading- Arrays, Functions, Testing and Arrays: An Overview
| |
2: lab | The Run-time Stack | Example- pi-sim.c
- value-param-example.c
- add2.c
- couple-6.c
- lab-value-param.c
- homework-value-param.c
Reading | storage allocation within the run-time stack |
3: lab | Functions with Addresses as Parameters | Example- func-sphere.c
- perim-area-1.c
- perim-area-2.c
- perim-area-2a.c
- func-exercise-1.c
- func-exercise-2.c
- quadratic-two-roots.c
- func-exercise-3.c
Reading- Functions with Addresses as Parameters
| experiments with values and addresses as parameters |
4: lab | Arrays | Example- max-min.c
- array-scale.c
- array-move.c
- photographer.c
- max-array.c
Reading | array storage, base addresses, indices |
5: lab | Program Correctness, and Testing | Example- func-parm.c
- func-parm-arrays.c
- motors-test.c
- object-avoid.c
- follower-test.c
- rand-beep.c
- get-ir.c
Reading | notes on pre- and post-conditions |
6: intro. | Overview of Characters, Strings, and I/O | Example- counting-chars.c
- char-example.c
Reading- Characters, Strings, and I/O: An Overview
| |
7: lab | Characters and Strings | Example- character-example.c
- io-NATO.c
- string-example-1.c
- string-example-2.c
- string-intro.c
Reading- Characters in C
- Strings in C
| character coding, string storage and functions |
8: project | Project: Uninterpretable Dance | Example- darts.c (with random number generator)
| project integrates all elements of C to this point |
9: lab | Function Pointers and Arrays | Example- circle-circum-area-1.c
- circle-circum-area-2.c
- circle-circum-area-3.c
Reading- Function Pointers (Optional)
| Function pointers and arrays of functions |