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: Write a Hello program - C Tutorial
From the course: C Programming Basics: Flow Control, Variables, and Pointers
Challenge: Write a Hello program
(upbeat electronic music) - [Instructor] Your challenge is to code a 'Hello' program. Allocate a text input buffer, prompt the user to type their name. Use the text input buffer to store the name, and then display the text input as a greeting. I recommend using the fgets() function to read input. This challenge should take you about 10 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
-
-
-
-
-
-
-
Exploring variables4m 55s
-
(Locked)
Understanding pointers4m 54s
-
(Locked)
Using pointers4m 14s
-
(Locked)
Challenge: Create a char pointer1m
-
(Locked)
Solution: Create a char pointer1m 16s
-
(Locked)
Accessing arrays with pointers6m 46s
-
(Locked)
Creating pointer functions4m 52s
-
(Locked)
Working with pointer arrays4m
-
(Locked)
Allocating memory4m 50s
-
(Locked)
Challenge: Write a Hello program28s
-
(Locked)
Solution: Write a Hello program1m 33s
-
-