TOC PREV NEXT INDEX

C++: A Dialog


3.17. 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.

www.steveheller.com
steve@steveheller.com
TOC PREV NEXT INDEX