Save this video free

7.2 - Arrays (2026-10-09)

Chris Bourke · 47:41 · Watch on YouTube

Part of University of Nebraska-Lincoln CSCE 155E. See all 14 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Chris Bourke explains C arrays by contrasting fixed-size stack arrays with dynamically allocated heap arrays, then demonstrates how to allocate, use, and release memory safely. He shows why C programs must track array lengths explicitly, how to pass arrays to functions, and how `const` prevents unintended changes; the lecture ends with a deliberately buggy sum function for the next class.

Key takeaways

Chapters

0:00 Course Reminders and the Shift to C Arrays
4:00 Static Stack Arrays Versus Dynamic Heap Arrays
8:00 Allocating Memory, Handling Failure, and Staying in Bounds
12:00 Why `free` Prevents Memory Leaks
21:00 Use-After-Free, Double-Free, and Invalid Pointers
27:40 Dynamic Arrays Require Explicit Size Bookkeeping
31:24 Building `print_array` with a Pointer and Length
36:00 Testing Array Edge Cases and Protecting Data with `const`
43:33 Array-Function Review and the Next Class's Buggy Sum

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:17 Heat. Heat. Here in my car, I go safest of all. I can lock on my doors. It's the only way to live in cars. Here in my car, I can receive. I can listen to you. Stay for cars. Here I come where the inven. down. When you

1:13 visit me, please open my door in cars. Here in my car, I know I'm starting to think about leaving tonight. Nothing seems right in cars. Heat. Heat. Heat. Heat.

2:30 Heat. Heat. All right. So, a couple reminders here. Uh remember that we're in the middle of exam 2 right now. So, if you have not already scheduled a time to go to the DLC, the digital learning commons, uh to take it, make sure that you're doing that as soon as possible. Uh the second reminder here is uh I I I posted this the other day when somebody asked me about uh next semester. Uh if you are a CS or CE major, you probably are taking CS10 uh and they'll be discussing how to

3:19 register. There's a new system called Stellic that you'll be using if you haven't used it before. Uh but but I've got some information uh posted on campus wire about uh computing courses in particular. uh computer science 2 is typically what you take uh and then an online Unix course and depending on whether or not you're CS or CE you would take a discrete math and or or you would take uh introduction to computer engineering 164. Uh if you are if you're interested I do have an H section uh for computer science too. So if you have any questions about that you can direct them to me but otherwise I I I've got them the differences here. All right. All

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Chris Bourke.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.