Chapter 8: Arrays and Vectors

7 flashcards · Programming Languages · by Gabriella Torres

  1. What does an array allow you to do?

    An array allows you to store and work with multiple values of the same data type.

  2. An array works like a ________ that can store a group of values, all of the ________ type.

    variable, same

  3. Here is a definition of an array of integers:

    int hours[6];

  4. int hours[6]; The number inside the brackets is the array's ________.

    size declarator

  5. The size declarator indicates the number of ________, or values, the array can hold.

    elements

  6. An array's size declarator must be a _________ with a value greater than zero.

    constant integer expression

  7. Arrays of ________ data type can be defined.

    any