•Input
from keyboard
–
char string2[ 10 ];
– cin >> string2;
–Puts
user input in string
•Stops
at first whitespace character
•Adds
null character
–If
too much text entered, data written beyond array
•We
want to avoid this (section 5.12 explains how)
•Printing
strings
–cout << string2 << endl;
•Does
not work for other array types
–Characters
printed until null
found
•