Save this video free

5.1 - Functions (2026-09-21)

Chris Bourke · 43:07 · Watch on YouTube

Part of University of Nebraska-Lincoln CSCE 155E. See all 9 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 introduces C functions as reusable units of code that accept typed parameters and return at most one value, showing how they reduce repetition and hide implementation details. Using a loan-payment program, he demonstrates prototypes, definitions, return statements, documentation comments, naming conventions, and how function calls transfer control; he also explains why `main` returns exit codes such as 0 for success.

Key takeaways

Chapters

0:00 Course Announcements: Fix-It Week and Exam Policies
2:12 C Functions as Reusable Units with Inputs and Outputs
5:40 Why Functions Reduce Repetition and Cognitive Load
10:42 Function Prototypes and the `roundToCents` Interface
17:30 Function Definitions, Return Values, and Documentation Comments
23:07 Designing a Monthly Loan Payment Function
30:50 Implementing Loan Payments and Tracing Nested Function Calls
36:25 C Naming Conventions, Void Functions, and Exit Codes

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

Transcript excerpt

0:00 Hopefully it's working. Uh anyway, so thank thanks again to our speakers. Uh for those on the line that missed it, make sure that you're going to the career fair this Tuesday, Wednesday, and Thursday because there are going to be a lot more companies than just uh Fast Enterprises there. And let me get this other one up there. All right. All right. So, what we're going to be starting for uh some other administrative stuff, if you're not paying attention to the announcements on campus wire, make sure that you are because this is fix it week. uh you have the opportunity to uh submit one uh hack and one lab for reconsideration. The rules for doing that and it's not just turn it in. You have to go and get it checked off. All that information is on campus wire. So don't don't ignore campus wire. Uh second, we already posted the results of

0:47 the first exam. Not too great. Uh they didn't mention they didn't uh really track with the u uh the hack in the lab. Uh so again take this as an opportunity to reexamine how you're approaching the course. You can always come by help hours any time to go over what you might have missed or with the content of the exam. And also uh something that uh that uh people also have been ignoring on campus wire is the fact that now that we're we're past the first exam now we're going to announce what we do with them. There are four exams plus the final. Final is there period. Uh but of the four exams we drop your lowest one. So, if you didn't do too well on the first exam, uh then you're not sunk for the rest of the semester. Uh but if if

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.