Save this video free

3.2 - Conditionals (2026-09-04)

Chris Bourke · 46:57 · 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 conditionals through two worked programs, emphasizing curly braces, mutually exclusive if/else if chains, boundary testing, and GCC warnings enabled with -Wall and -Wextra. He builds a decibel classifier and a Cartesian-coordinate classifier, using them to explain input choices, error cases, ad hoc testing, regression, and why automated unit tests are valuable.

Key takeaways

Chapters

0:00 Opening Music Before the Conditionals Review
3:02 A Stray Semicolon Breaks if-Statement Binding
7:00 GCC Lint Warnings and Static Analysis
14:12 Planning a Decibel Classifier and Its C File
18:30 Reading the Decibel Level from Command-Line Arguments
21:19 Building and Testing the Decibel if-else Chain
31:10 Reading Cartesian Coordinates with scanf
37:30 Order Coordinate Cases from the Origin to the Quadrants
44:00 Testing Coordinate Input and Floating-Point Limits

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

Transcript excerpt

0:02 [music] [music] Heat. Heat. [music] Anywhere [music] I see kiss [music] myself [music] kiss my she said she take me anywhere she take me [music] anywhere as long as she stay anywhere take me anywhere [music] as long as I say kiss myself kiss Kiss my [music] hands.

0:53 Kiss my hands. [music] [music] Heat. Heat. [music] [music] >> [music] >> Kiss kiss [music] [music] [music] my hands.

1:44 >> [music] >> All right. So today we'll finish up on

3:04 conditionals and then on Wednesday when we come back because Monday there is no class because of a labor day. Uh but on Wednesday when we come back we will start on loops. Uh but otherwise uh we left it off on this pitfall here and you can probably tell what it is by there's something fishy. There's something wrong here by immediately looking at it. Uh what was wrong with this code here? Yeah, there there's a semicolon sitting right here. We've never seen that before, right? We haven't been putting semicolons after conditional statements. We've only been putting them after executable statements and they don't belong after conditional statements. Conditional statements don't execute anything. They decide am I going to do this or I'm going to do that that and then it goes and does that thing. It doesn't actually do those things yet. Uh

3:51 so what happens when we put that into code here? I'll go ahead and compile this predict. Is it going to print out a is 10 or not? It's not right. I mean it's a is not 10. It's equal to five. But it ends up outputting that a is 10. Now the reason for that is what's called binding. All right? So if I just write this in isolation and I said put a semicolon

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.