Parameters
Arrays
Pointer
Dynamic Arrays
An Array Type for Strings
100
Only the value of the argument is passed in
What is a call-by-value parameters
100
An array
What is "behaves like a list of variables that can be declared in a single line of code"
100
A pointer
What is the memory address of a variable
100
A dynamically allocated array is an array:
What is "whose size is not specified when you write the program"
100
The the null character which is used as an end marker
What is \0
200
The argument is a variable and a pointer to the variable is passed in
What is a call-by-reference parameter
200
The individual variables that together make up the array
What is an indexed variable
200
The following declares p to be a pointer variable that points to a variable of type double
What is double *p;
200
Dynamically allocated arrays are created using:
What is the new operator
200
An array of characters terminated with the '\0'
What is a C-string
300
The way that you indicate a call-by-reference parameter
What is an ampersand sign (&)
300
The number in _________ is called an index.
What are square brackets
300
Used to determine the address of a variable
What is the & operator
300
To delete a dynamic array called "a", use the following statement:
What is delete [] a;
300
Assigns the value "Hello" to the C-string variable aString:
What is strcpy(aString, "Hello");
400
Each memory location has a unique ______ that is a number.
What is an address
400
The number of indexed variables in the array
What is the declared size
400
Is used to both declare a pointer and to refer to a variable pointed to by p
What is the * operator
400
Suppose the pointer "d" contains the address of the indexed variable d[0]. The expression d + 1 evaluates to
What is the address of d[1].
400
Used to test whether two C-strings are the same.
What is the operator ==
500
With a ____________________ a variable that is listed as a parameter can be changed by the function (without a return call)
What is a call-by-reference parameter
500
An index expression evaluates to some value other than those allowed by the array declaration
What is out of range (or illegal)
500
Is the asterisk when it is placed in front of a pointer (after the pointer has been declared)
What is a dereferencing operator
500
To perform pointer arithmetic.
What are the increment and decrement operators, ++ and --
500
The ordering relationship used for comparing character
What is lexicographic order