- A value is typically numeric,…although it doesn't have to be.…In your code you can specify values such as three,…five or even 100,000,000.…The printf function can be used to display…those values providing you know about something…called a place holder.…In this movie, I continue exploration…of the printf function.…I show you how place holders can be used…to display values, not only numbers…but strings and individual characters as well.…To view values in action,…you can use the printf function…but you have to take that function up a notch.…
The printf statement at line five generates outputs…that would have you believe the number 27…was a value but it's not, it's part of a string,…just the characters two and seven.…To specify a value, you need to do two things.…First, you must place a value into the code,…in this case, the number 27.…Second, you must direct the printf function…to display that value.…Edit line five to replace the characters…two and seven with %d.…
In some editors, you may see the %d highlighted,…that's because it's a special symbol…
- Understanding a C program
- Adding comments
- Using escape characters
- Working with values and placeholders
- Introducing variables
- Making a decision with if
- Adding functions
- Manipulating strings
- Building arrays
- Nesting structures
Skill Level Beginner
1. Getting Started
2. Programming Basics
3. Program Flow Control
4. Intermediate C Language Concepts
5. Advanced C Language Concepts
Next steps2m 11s
- 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.