From the course: C Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Build the foundation - C Tutorial
From the course: C Essential Training
Challenge: Build the foundation
(upbeat music) - [Instructor] This course's project has you write code that generates output in a grid pattern as shown here. This program showcases the skills taught in this course, and its code is built one step at a time, which is how all programs are built. Your task for this challenge is to build the foundation for the course challenge. Write code that includes both the stdio and stdlib header files. Like all C programs, the code features the main function. This function features a single statement for now, return, which sends the value zero back to the operating system. To provide more support for your later efforts to modify the code, you must also add comments. Comment before the main function, stating that it generates multiple lines of output. In the main function, provide three comments to document the program's eventual three steps to get and verify input, to avoid out of range values and to process the rows.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Coding your first program3m 18s
-
(Locked)
Challenge: Write your own code1m 5s
-
(Locked)
Solution: Write your own code1m 34s
-
(Locked)
Getting into the C language2m 29s
-
(Locked)
Reviewing code structure2m 56s
-
(Locked)
Working the C development cycle3m 11s
-
(Locked)
Challenge: Find and fix the bugs45s
-
(Locked)
Solution: Find and fix the bugs1m 38s
-
(Locked)
Exploring the preprocessor3m 25s
-
(Locked)
Understanding header files and libraries3m 19s
-
(Locked)
Adding comments2m 39s
-
(Locked)
Challenge: Build the foundation1m 13s
-
(Locked)
Solution: Build the foundation1m 30s
-
-
-
-
-
-