A built-in array of char
s representing a null-terminated string can be output with cout
and <<
. The statement
cout << sentence;
displays the built-in array sentence
. Like cin
, cout
does not care how large the built-in array of char
s is. The characters are output until a terminating null character is encountered; the null character is not displayed. [Note: cin
and cout
assume that built-in array of char
s should be processed as strings terminated by null characters; cin
and cout
do not provide similar input and output processing capabilities for other built-in array types.]
18.118.140.108