COP 3014 Recitation - Week 12

Structs!

Cake or pie? Cake or pie? The cake is a lie. Click here for an informal proof.

The goal of this session is to help you to better understand structs and how they are stored in memory. This should help you with assignment 6.

  1. First, complete this file (read the comments in the file) (less than 5 minutes)
  2. Complete this file (30 minutes)
  3. Analyze this. What's wrong? (3 minutes)
  4. Analyze this. What's wrong? (3 minutes)
  5. Analyze this. What's wrong? (3 minutes)
  6. Analyze this. What's wrong? (3 minutes)
  7. Analyze this. What's wrong? (3 minutes)


Program examples