wisconsin
W02

W02

Content locked

The catalog is public. Reading this content requires approved access.

Sign in to read
Week 2 Objectives
This Week
Read before Thursday
Next Week
Meet Pointers
Practice Pointers
Recall 1D Arrays
1D Arrays and Pointers
Address Arithmetic
Using a Pointer
Passing Addresses
Pass-by-Value
1D Arrays on the Heap
Pointer Caveats
Don’t dereference uninitialized or NULL pointers!
Don’t dereference freed pointers!
Watch out for heap memory leaks!
Be careful with testing for equality!
Don’t return addresses of local variables!
Meet C Strings
How? Initialization
How? Assignment
Meet string.h
How? strcpy
Command Line Arguments