From the course: C Programming Basics: Flow Control, Variables, and Pointers
Unlock the full course today
Join today to access over 23,400 courses taught by industry experts.
Challenge: Add a puts() statement - C Tutorial
From the course: C Programming Basics: Flow Control, Variables, and Pointers
Challenge: Add a puts() statement
(intriguing music) - [Instructor] Your challenge is to add another puts function to the existing source code in exercise file, 02-02_empty.c. Have that function output a line of text before line five. What the text says is up to you. Save your changes, build and run to view the results. This challenge should take you about three 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
-
-
-
-
Introducing C code3m 43s
-
(Locked)
Sending text to output2m 55s
-
(Locked)
Challenge: Add a puts() statement30s
-
(Locked)
Solution: Add a puts() statement1m 19s
-
Adding comments to the code2m 50s
-
(Locked)
Exploring the printf() function1m 57s
-
(Locked)
Challenge: Add a new line53s
-
(Locked)
Solution: Add a new line1m 32s
-
(Locked)
Working with escape sequences1m 46s
-
(Locked)
Challenge: Use escape sequences43s
-
(Locked)
Solution: Use escape sequences1m 36s
-
(Locked)
Working with values and placeholders4m 39s
-
(Locked)
Introducing variables3m 4s
-
(Locked)
Experimenting with variables3m 11s
-
(Locked)
Using character I/O6m 3s
-
(Locked)
Exploring the scanf() function4m 20s
-
(Locked)
Working with strings5m 25s
-
(Locked)
Understanding arithmetic in C1m 51s
-
(Locked)
Doing math5m 53s
-
(Locked)
Making more calculations2m 37s
-
(Locked)
Challenge: Math quiz46s
-
(Locked)
Solution: Math quiz2m 26s
-
-
-
-
-