comp 151_chap7 arrays

¡Supera tus tareas y exámenes ahora con Quizwiz!

A string is an array of _

char(s)

Write in C++ the definition for int "days" with 6 elements

int days [6];

The amount of memory allocated to an array is based on the _ and the _ of locations or size of the array

type of data stored; number

The _ statement can be used to declare an array type and is often used for multidimensional array declarations so that when passing arrays as parameters, brackets do not have to be used

typedef

The first subscript of every array in C++ is _ and the last is _ less than the total number of locations in the array

0;1

Array initialization and processing is usually done inside a _

loop

An n-dimensional array will be processed within _ nested loops when accessing all members of the array

n

Multi-dimensional arrays are usually processed within _

nested loops

In passing an array as a parameter to a function that processes it, it is often necessary to pass a parameter that holds the _ of _ used in the array

number;elements

Arrays used as arguments are always passed by _

pointer

An array allows you to store/work with multiples values of

same data type

Upon exiting a loop that reads values into an array, the variable used as a(n) _ to the array will contain the size of that array.

subscript/counter


Conjuntos de estudio relacionados

History of Mathematics Test 2 and more

View Set

Data/Collection/Behavior/Decisions

View Set

Biology chapter 7 photosynthesis

View Set

Biology Of The Cell - prac test 1

View Set