Final Flashcards
T/F? A pointer variable must be declared specific to the data type of the variable whose address will be assigned to it.
True
T/F? A pointer has as its value a signed integer that is allocated four bytes of storage.
False
T/F? To assign the address of a variable to a pointer variable an address operator must be used.
True
T/F? To access the contents of a variable through a pointer variable, the pointer variable must be assigned the memory address of the variable first, and then the pointer must be dereferenced.
True
T/F? A pointer variable has no data type of its own.
False
T/F? A pointer variable must contain an unsigned integer so it cannot point to a character string.
False
T/F? A pointer variable must not be assigned a scalar constant.
True
T/F? A pointer variable can be added to another pointer variable.
False
T/F? A pointer variable can be subtracted from another pointer variable.
True
T/F? A pointer variable can be used to change the address of an array.
False
T/F? Two pointer variable can point to the same variable.
True
T/F? An array name is an address variable.
False
T/F? The address of an array is found as either the array name or the explicit address of the first element of the array.
True
T/F? The elements of a one-dimensional array may be accessed by dereferencing the offset address only once.
True
T/F? To input data to an array using a pointer variable, the name of the array may be used to specify the address of the array elements.
False