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: Write your own code - C Tutorial
From the course: C Essential Training
Challenge: Write your own code
(upbeat music) - [Narrator] Here is your challenge to see how well you understand C programming so far. Yes, you can do this. Create a source code file with the main function, include a statement that outputs text. If you can, write this code from scratch. Don't use any exercise file or the preset code provided from your IDE. You can use the command prompt, or the IDE, or both if you want a real challenge. As a hint, use the puts function to generate text output. Enclose the output text, the string literal, in double quotes as the puts functions argument. If you really need help peek at the exercise file. 0104, sample C, though only do this as a last resort. As a bonus challenge, write another version of the program that outputs two lines of text by adding a second put statement. This exercise should take you about five minutes to complete.
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
-
-
-
-
-
-