Discussion Outline
Session 7
Current material
- Arrays of Structures
- Accessing an element's members ie. array[3].age
- Can be passed like any other array
- Pointers
- A pointer is a variable that holds an address
- Declaring pointers
- Initializing pointers
- & and * operator
- Passing pointers to functions
- Do traces similar to those in Lecture 13
- Trace showing pointer mechanics
- Trace showing passing pointers & modification of the
variable in the calling function
Midterm Master List
The master list of questions for the midterm will be released on Monday.
YOU MAY NOT GIVE ANSWERS TO THE QUESTIONS ON THE LIST
You should help students with questions by showing them similar problems and
discussing the answers in a more general fashion.