class: title # Managing Memory, _continued_ ## CSC 161 – April 2, 2026 --- # Agenda for Today 1. Quiz 1. Department Events 2. Upcoming Work 3. Discussion 4. Lab 5. Wrap Up --- class: section green # Quiz --- # Department Events ## CS Poster Sessions: Wednesday and Thursday next week .indent[ Wednesday, April 8th and Thursday, April 9th from 4:15–5:45pm in HSSC A1231 Snacks (including fresh fruit) will be provided! ] --- class: section blue # Upcoming Work --- # Homework: Lightcycle **Due:** Thursday, April 9th ## Recommendations You might find it helpful *not* to use concepts from today's class on this assignment, although they are allowed if you do find a use for them. ## Questions? *None so far.* --- class: section blue # Discussion --- # Discussion: Ownership **Items for think, pair, share:** 1. What can we tell about the two functions below based on their declarations? ```c void foo(int values[], size_t len); void bar(const int values[], size_t len); ``` 2. Our reading introduced the distinction between ***owning*** and ***borrowed*** pointers to memory. How are these two kinds of pointers different? --- class: section green # Lab Time --- class: section blue # Wrap Up --- # Wrap Up ## Lightcycle Assignment Start the assignment soon if you haven't already. The assignment is due Thursday next week, or Saturday with a token. ## Lab Report There are two labs today. You'll need to submit responses to exercises from both labs with this week's lab report: - **Ownership:** Submit responses from all exercises in part C. - **Address Sanitizer:** Submit your responses for exercises B.1, B.2, and B.3. Please combine your responses into one file named `responses.txt` and upload it with your lab report. ## Office Hours I'm happy to meet to discuss how things are going in the class, or to help with specific concepts if you are having trouble. Book a time at
.