Lecture 03-1

Stack-Allocation. Arrays and Structs.

Part 01. Feedback on Homework 01
Part 02. Stack Allocation
Part 03. Stack-Allocated Arrays
Part 04. Smashing the Stack
Part 05. Stack-Allocated Structs

Sample C programs

Solutions to Homework 01.
• guess6.cc
• divisors.cc
• triangle.cc
• sqrt.cc

From Week 02. We play with &.
• fib.cc
• fib_instrumented.cc

And we do that again. Different program.
• stack.cc
• stack_address.cc

Examples of array code. The last uses &.
• array1.cc
• array2.cc
• array3.cc
• array4.cc

Examples of struct code.
• struct1.cc
• struct4.cc