The instructor reviews the items that must be addressed to fix the challenge code. Each item is discussed with explanations offered for each version, correct or incorrect, and how it impacts the code.
(upbeat music) … - I'll forgive you if you didn't quite understand … the course challenge … and perhaps you didn't code things the way you see here … in my solution. … To review the task was first, … to include the stdio and stdlib header files … which you see here at lines one and two. … Second, create the main function. … Third, in the main function put a return statement … that sends zero back to the operating system. … Now this program doesn't technically do anything … but it was a challenge. … If you got these three parts correct, … then you've provided a solid foundation … for the rest of the course challenges. … The second part of the challenge was to add comments, … which you can see in this code. … So line four introduces the main function, … lines seven through nine … which will eventually contain all the statements … that do things in the code, … they show three other comments. … To get and verify input, … to avoid out of range values, … and to process the rows. … Now how you phrase these comments, …
- Writing your first C program
- Working the C development cycle
- Adding comments to code for clarity
- C language data types
- Declaring variables
- Making new data types
- Typecasting variables
- Using math, assignment, and logical operators
- Creating for and while loops
- Nesting loops
- Creating functions
- Returning values from functions
- Passing arguments to functions
- Creating recursive functions
Skill Level Intermediate
C: Data Structures, Pointers, and File Systemswith Dan Gookin2h 57m Intermediate
1. The Fundamentals of C
2. Variables and Values
3. Operators and Math
4. Decisions and Loops
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.