Chapter 7 Flashcards

(6 cards)

1
Q

works like a variable that can store a group of values, all of the same type; values are stored contiguously

A

array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

indicates the # of elements an array can hold; # inside the square brackets of an array

A

size declarator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

values within an array

A

elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

used as an index to pinpoint a specific element w/in an array [range: 0 to n-1]

A

subscript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

easy mistake to make bc subscripts start at zero; causes program to skip first array slot and write data beyond array’s boundaries

A

off-by-one error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

series of array values stored inside braces and separated by commas; values are stored in order they appear

A

initialization list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly