Computer Science Chapter 7

size declarator

The _ indicates the number of elements or values an array can hold.

constant integer expression, zero

The size declarator must be a _ with a value greater than _.


Each element of an array is accessed and indexed by a number known as a _.


Subscript numbering in C++ always starts at _.

size declarator, subscript

The number inside the brackets of an array definition is the _, but the number inside an array's brackets in an assignment statement, or any other statement that works with the contents of the array, is the _.


C++ has no array _ checking, which means you can inadvertently store data past the end of an array.


Starting values for an array may be specified with a _ list.


If an array is partially initialized, the uninitialized elements will be set to _.

initialization list

If the size declarator of an array definition is omitted, C++ counts the number of items in the _ to determine how large the array should be.


By using the same _ for multiple arrays, you can build relationships between the data stored in the arrays.


You cannot use the _ operator to copy data from one array to another in a single statement.


Any time the name of an array is used without brackets and a subscript, it is seen as _.

address or name

To pass an array to a function, pass the _ of the array.


A _ array is like several arrays of the same type put together.

rows, columns

It's best to think of a two-dimensional array as having a _ and _.


To define a two dimensional array, _ size declarators are required.


When initializing a two dimensional array, it helps to enclose each row's initialization list in _.


When a two dimensional array is passed to a function the _ size must be specified.

STL or Standard Template Library

The _ is a collection of programmer defined data types and algorithms that you may use in your programs.

sequence, associative

The two types of containers defined by the STL are _ and _.


The vector data type is a _ container.


To define a vector in your program, you much #include the _ header file.


To store a value in a vector that does not have a starting size, or that is already full, use the _ member function.


To determine the number of elements in a vector, use the _ member function.


Use the _ member function to remove the last element from a vector.


To completely clear the contents of a vector, use the _ member function.