wisconsin
W03

W03

Content locked

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

Sign in to read
Week 3 Objectives
This Week
Read This Week
Read before Next Week Tuesday
Read before Next Week Thursday
Do
Recall 2D Arrays
2D Arrays in Java
2D Arrays on the Heap
2D “Array of Arrays” in C
Address Arithmetic
2D Arrays on the Stack
Stack Allocated 2D Arrays in C
Stack & Heap 2D Array Compatibility
For 2D STACK Allocated Arrays ONLY
2D Arrays: Stack vs. Heap
Stack: row-major order layout
Heap: array-of-arrays layout
Array Caveats
Meet Structures
What?
Why?
How? Definition
How? Declaration
Nesting in Structures and Arrays of Structures
Nesting in Structures
Array of Structures
Passing Structures
Consider the additional code:
Pointers to Structures
Why? Using pointers to structures
How?