Lecture 9 Outline (October 14, 2015)
Greetings and felicitations!
The ECS 30 web hosting system (the system called “nob.cs.ucdavis.edu”) suffered a disk crash and is down. We do not know when it will be back up. All material has been uploaded to SmartSite.
Homework #2 is available and due October 30
Pointers and indirection
A pointer is an address
), dereference (
File pointers as an example (
More on functions in C
Parameters: pass (or call) by reference (also called output parameters)
Example: swap function — exchange values of two variables (
Scope: local variables (
You can also obtain a PDF version of this.
Version of October 14, 2015 at 12:07PM