Join Dan Gookin for an in-depth discussion in this video Introducing variables, part of Up and Running with C.
- Programs work fine with immediate values,…but often times you don't know what a value is.…Say the value comes from input, the user types it,…or it's read from a file or the Internet.…To store such values you need…a specific cubby-hole or container.…In programming that container is known as a variable.…In this movie I introduce you…to the concept of the variable.…It's a container into which you can store values,…values that are unknown or values that can change.…You'll see how to declare a variable in the C language…and how a variable is used in the code.…
A variable is a container for a value.…Because C deals with different types of values…a variable must be declared as a specific type…and it's given a name, a name that's used in the code.…In C the variable type matches the variable's content,…the type of value being stored.…Integer variables can hold only…integer values, or whole numbers.…Float variables hold floating-point values,…which are very large numbers, very small numbers,…or numbers with a fractional part like 2.1.…
- 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.