Lesson 5: Some Helpful Pointers
Outline:
- Discussion: academic integrity
- Pointers
- variable addresses
*versus&- arrays and pointers
- static vs. dynamic allocation
- example:
pointers.c
- variable addresses
- Understanding variables and memory
sizeof- example:
sizes.c(includestypedefexample)
- Assignment 4: Queues in C
Want additional practice?
Check out the interactive exercises from our textbook!
Reading assignment (to be completed by the next class):
- Assignment 4: Queues in C – read
queue.handqueue.cand try to run the starter code onmantis! - DiS Sec. 2.3: Pointers and Functions
- DiS Sec. 2.4: Dynamic Memory Allocation
- DiS Sec. 2.5.1: Single-Dimensional Arrays