In this challenge, learn how to write a simple program from scratch. Feedback is important when learning a programming language and it's important to make learning fun by challenging a programmer early in the learning processes. To craft a program from scratch rewards the learner with immediate feedback, helps boost their confidence, and encourages further exploration.
(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. … …
- Writing your first C program
- Working the C development cycle
- Adding comments to code for clarity
- C language data types
- Declaring variables
- Making new data types
- Typecasting variables
- Using math, assignment, and logical operators
- Creating for and while loops
- Nesting loops
- Creating functions
- Returning values from functions
- Passing arguments to functions
- Creating recursive functions
Skill Level Intermediate
C: Data Structures, Pointers, and File Systemswith Dan Gookin2h 57m Intermediate
1. The Fundamentals of C
2. Variables and Values
3. Operators and Math
4. Decisions and Loops
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.