- A character is a single letter or symbol.…Put two characters together and you have a string.…But strings are funky things in this C language.…They're not a variable type, just a clutch…or array of characters, all marching together in a line.…In this movie, I introduce you to the string.…You'll see how strings are created in C,…how they can be filled by using string input functions.…You'll also meet the scanf() function,…which is used to pull in all sorts of input.…Line five probably looks a little odd to you.…It's a variable declaration.…
A char variable named password is created.…The string spatula is assigned to the password variable.…This is known as an immediate assignment,…which is possible with other variables, as well,…but necessary when declaring a string.…By the way, this is an array declaration,…which is a topic for a later movie.…The square brackets indicate…that more than one char variable is present.…How many?…The compiler figures that out,…based on the size of the string.…
Otherwise, the value would appear between the brackets.…
- 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.