Skip to main content
Logo image

Section 20.9 Summary

Summary:
  • A string is a null-terminated array of characters
  • Nothing will prevent you from placing a string that is too long into a string variable. It’s your responsibility to pay attention!
  • The %s format specifier can be used with printf() and scanf() to print or read strings.
  • The string library provides functionality such as:
    • strcpy
    • strcmp
    • strlen
    • And many more!
  • You can also create a string using sprintf().