Skip to main content\(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle     \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle        \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle      \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 20.9 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 %sformat specifier can be used withprintf()andscanf()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().