Save this video free

2.3 - Basics (2026-08-31)

Chris Bourke · 49:01 · 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 teaches C input and output, moving from `printf` formatting and interactive `scanf` to command-line arguments for non-interactive programs. He demonstrates `argc` and `argv`, converting argument strings with `atoi` and `atof`, validating input, and building a quadratic-roots program with the math library.

Key takeaways

Chapters

0:00 Opening and Recap of C Output Basics
2:00 `printf` Floating-Point Precision, Width, and Alignment
8:30 Formatting Integers and Zero-Padded Identifiers
12:00 `scanf` Placeholders and the Address-of Operator
17:05 Command-Line Arguments with `argc`, `argv`, `atoi`, and `atof`
26:45 Converting Miles to Kilometers with Input Validation
33:55 Setting Up a Command-Line Quadratic Solver
38:30 Applying the Quadratic Formula and Testing Real Roots
45:00 Handling Invalid Quadratic Inputs and Previewing Conditionals

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

Transcript excerpt

0:03 [music] She should stay away from friends. She [music] should have had more time to spare. She should have died when she was born. She should have [music] won a crown of thorns. Sh. [music] [music] She should [music] understand. She should have another chance. Heat. Heat. [music] [music]

0:58 Heat. [music] [music] Heat. [music] She should [music] stay away from friends. She should have had more time to [music] spend. She should die when she was born. She want a crowd of she. [music] [music]

2:00 All right. So on Friday, uh today we'll uh finish up talking about the basics. uh so that we can move on uh to conditionals on Wednesday. On Friday, we left it off with basic input and output. And we started with input. Uh print f is the function that you want to use to print anything to the standard output, which for us is going to be our uh little terminal over here, right? Uh but of course, when you go to the grader, it'll also have standard output. Uh but when when you look at it in u with respect to like grade scope, it'll actually output it to your web uh to your canvas instance on your web browser. Uh percent f is used for doubles to format a double. That's because f stands for a floatingoint number. Uh percent d is for integer values. It stands for digit. And the

2:47 only one that makes sense is percent c for character values. So if I have three variables here, then I can print them out all at once, right? I can provide multiple uh placeholders at once. It's always percent. And so the for the first one that will be associated with this guy over here. The second one will be associated with this guy over here, etc.

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.