Exercises, Fourth Set

8.Here are four possible versions of an output statement. Assuming that the value of the string variable called name is “Joe Smith”, what does each one of them do?
cout << "That is very old, " << name << ". " << endl;

cout << "That is very old, " << name << '. ' << endl;

cout << "That is very old, " << name << "." << endl;

cout << "That is very old, " << name << '.' << endl;

Now it's time for some review on what we've covered in this chapter.

Get C++: A Dialog Programming with the C++ Standard Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.