Self-Review Exercises
-
2.1 Fill in the blanks in each of the following.
Every C++ program begins execution at the function .
A(n) begins the body of every function and a(n) ends the body.
Most C++ statements end with a(n) .
The escape sequence
\n
represents the character, which causes the cursor to position to the beginning of the next line on the screen.The statement is used to make decisions.
-
2.2 State whether each of the following is true or false. If false, explain why. Assume the statement
using std::cout;
is used.Comments cause the computer to print the text after the
//
on the screen when the program is executed.The escape sequence
\n
, when output withcout
and ...
Get C++ How to Program, 10/e 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.