From the course: Complete Guide to C Programming Foundations
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Chapter challenge: Building the foundation - C Tutorial
From the course: Complete Guide to C Programming Foundations
Chapter challenge: Building the foundation
(upbeat music) - [Instructor] Your boss wants you to concoct a C program, but he doesn't know how to program. He's written an outline for the program and wants to see the results right away. The challenge source code file contains these entries, a description of the program one step at a time. Your task is to convert this file into a C program into C source code, though one that contains only the main function, and these sentences converted into comments. Modify the challenge program to create a C source code file. Include both the stdio.h and stdlib.h header files. Add the main function and its braces. Include the return statement. Convert the five sentences into comments. The first comment goes outside the main function. The other four comments are inside the main function. This challenge may not seem like much, but it's the foundation upon which you build most C programs, and it's a good way to plot out advanced programs, just to get you started. This challenge should take you no…
Contents
-
-
-
Coding your first program3m 40s
-
(Locked)
Challenge: Write your own code51s
-
(Locked)
Solution: Write your own code1m 50s
-
(Locked)
Getting into the C language2m 34s
-
(Locked)
Reviewing code structure3m 52s
-
(Locked)
Working the C development cycle3m 45s
-
(Locked)
Challenge: Find and fix the bugs43s
-
(Locked)
Solution: Find and fix the bugs1m 28s
-
(Locked)
Exploring the preprocessor3m 23s
-
(Locked)
Understanding header files and libraries3m 19s
-
(Locked)
Adding comments2m 49s
-
(Locked)
Chapter challenge: Building the foundation1m 11s
-
(Locked)
Chapter solution: Building the foundation1m 38s
-
-
-
-
-
-
-
-
-
-
-