Save this video free

R2/7.1 - Review & Arrays (2026-10-07)

Chris Bourke · 51:21 · 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 reviews C fundamentals for an upcoming 25-question exam, including declarations, integer division, loops, pointers, pass-by-reference, and unit testing. He then introduces arrays, explains zero-based indexing and the dangers of out-of-bounds access, and demonstrates why large arrays should use heap memory allocated with malloc rather than limited stack space.

Key takeaways

Chapters

0:00 Opening Audio and Return to the Exam Review
2:27 Reviewing C Declarations, Integer Division, and Loop Counts
5:06 Tracing Pointers, Pass-by-Reference, Enums, and For Loops
11:17 Older Exam Questions on Addresses and Pointer Dereferencing
15:23 Practicing Unit Testing and Syntax Checks with CS50.ai
22:19 Array Elements, Zero-Based Indexing, and Bounds
27:29 Static Arrays, Stack Limits, and Uninitialized Values
35:14 Stack Smashing and the Limits of Large Static Arrays
38:18 Heap Allocation with malloc, size_t, and sizeof
45:03 Building a Dynamic Integer Array and Checking Memory Errors

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

Transcript excerpt

0:02 [music] [music] [music] >> Got me moving. I want you to know. Sizing [music] up a Bible. I want you to know. Girl, it's so cruel, but I want [music] you to know. Don't know about you, but I am Lucian. Shine. I am Lucian. Shine. >> [music] >> I am Lucian. Shine. I am Lucian. Shine. I am Lucian. Shine. I am Lucian.

0:48 Shine. I am Lucian. What I grow to up to be. Be a defacer. [music] Defacer. >> [music] >> Defacer. Defacer. Defacer. Defacer. GOT ME MOVING. >> [screaming] >> SIZING UP A BIBLE. GIRL, IT'S SO CRUEL, BUT DON'T KNOW ABOUT YOU, but [music] I am Lucian. Shine. I am Lucian. Shine. I am Lucian.

1:35 Shine. [music] I am Lucian. Shine. I AM LUCIAN. SHINE. >> [music] >> I AM LUCIAN. >> THERE WE GO.

2:28 ALL RIGHT, HOPEFULLY THAT that takes care of the audio issue there. Anyway, uh >> [clears throat] >> So, which one of the following is valid declaration or assignment? It's obviously going to be A there because we've got int A is equal to 50 with a semicolon. Uh the problem with B would be that it a variable can't be a number. Uh the problem with C is that integer is not a keyword and you can see that with the code high syntax highlighting there. >> [clears throat] >> Double A is equal to 50. That would be normally okay, but there's no semicolon at the end, right? And finally, int A {comma} A, you can't declare a variable twice, right? Uh which of the following expressions would evaluate to true if the integer variables A, B, and C hold values 10, 0, and 20? So, 10 plus

3:15 0, that's 10, is that equal to 20? No, false. A times B, that's going to be 0.

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.