chapter 7 + 8 Flashcards
anonymous type
data type in which you directly specify values in the variable declaration with no type name
enumeration type
user defined simple data type
enumerator
identifier used in an enumeration type
aggregate operation
any operation on an array that manipulates the entire array as a single unit
array
collection of a fixed number of elements (called components) in which all of the elements must be of the same data type
Array index out of bounds
the index is out of bounds if it is < 0 or > ARRAY_SIZE - 1
array index in bounds
the index is in bounds if it is >= 0 and <= ARRAY_SIZE - 1
array subscript operator
[ ]
- used to access an individual character within a string y specifying the character’s position within the square brackets
- used to access the array element at the position number contained within the square brackets
base address
the memory access of the first component in an array
character array
an array whose components are of the type char
column processing
processing of a particular column of a two-dimensional array
dynamic arrays
arrays that are created during program execution using pointers
finding the sum and average of an array
code that finds the sum and average of the values in the array
index
any expression whose value is a nonnegative integer and which is used for accessing an array component
initializing
the process of using a loop to initialize every component of the array
n-dimensional array
a collection of a fixed number of components arranged in n dimensions
( n >= 1 )
one-dimensional array
an array in which the components are arranged in a list form
parallel arrays
two (or more) arrays with corresponding components holding related information
row order form
refers to the manner in which a two-dimensional array is stored; the first row is stored first, followed by the second row, followed by the third, and so on
row processing
processing of a particular row of a tow-dimensional array
selection sort
search method in which the array is searched for the smallest value, which is swapped with the value at the top of the array; then repeated for the next smallest value, and so on
sequential or linear search
searches an array sequentially starting with the first element; continues until the item is found or there are no more elements
simple data type
signifies that a variable can store only one value at a time
structured data type
each data item is a collection of other data items
two-dimensional array
a collection of a fixed number of components arranged in rows an columns (that is, in two dimensions), wherein all components are of the same type