Self-Review Exercises

  1. 6.1 Answer each of the following:

    1. Program components in C++ are called              and             .

    2. A function is invoked with a(n)             .

    3. A variable known only within the function in which it’s defined is called a(n)             .

    4. The              statement in a called function passes the value of an expression back to the calling function.

    5. The keyword              is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.

    6. An identifier’s              is the portion of the program in which the identifier can be used.

    7. The three ways to return control from a called function to a caller are             ,              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.