Chapter 8: Arrays and Vectors
7 flashcards · Programming Languages · by Gabriella Torres
What does an array allow you to do?
An array allows you to store and work with multiple values of the same data type.
An array works like a ________ that can store a group of values, all of the ________ type.
variable, same
Here is a definition of an array of integers:
int hours[6];
int hours[6]; The number inside the brackets is the array's ________.
size declarator
The size declarator indicates the number of ________, or values, the array can hold.
elements
An array's size declarator must be a _________ with a value greater than zero.
constant integer expression
Arrays of ________ data type can be defined.
any