Exercises

  1. 7.6 (Fill in the Blanks) Fill in the blanks in each of the following:

    1. The names of the four elements of array p are           ,           ,            and           .

    2. Naming an array, stating its type and specifying the number of elements in the array is called            the array.

    3. When accessing an array element, by convention, the first subscript in a two-dimensional array identifies an element’s            and the second subscript identifies an element’s           .

    4. An m-by-n array contains            rows,            columns and            elements.

    5. The name of the element in row 3 and column 5 of array d is           .

  2. 7.7 (True or False) Determine whether each of the following is true or false. If false, explain why. ...

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.