First page Back Continue Last page Graphics
C Strings (cont.)
Short hand for initialization
{ “ This is a string initialization.” }
String constant
Practice: strings.cpp
Note in Figure 4.2 that the nulls fill out the rest of the array.
Miss a null and functions (like cout) that depend on it, will just run off the end!
Practice runoff_string.cpp in inclass.