CSCE Chapter 9

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

F

(T/F) A pointer variable that has not been initialized is called a null pointer.

F

(T/F) Any mathematical operation, including multiplication and division, may be performed on a pointer.

T

(T/F) Array names cannot be dereferenced with the indirection operator.

T

(T/F) Each byte of memory is assigned a unique address.

F

(T/F) In using pointer with the delete operator, it is not necessary for the pointer to have been previously used with the new operator.

T

(T/F) Pointer variables are designed to hold addresses.

T

(T/F) Pointers may be compared using the relation operators.

F

(T/F) The & operator dereferences a pointer.

F

(T/F) The & symbol is called the indirection operator.

F

(T/F) The * (indirection) operator is used to get the address of a variable.

T

(T/F) The address 0 is generally considered unusable.

T

(T/F) The address operator is not needed to assign an array's address to a pointer.

T

(T/F) The new operator dynamically allocates memory.

T

(T/F) When the indirection operator is used with a pointer variable, you are actually working with the value the pointer is pointing to.

T

(T/F) When used as function parameters, reference variables are much easier to work with than pointers.

T

(T/F) When you add a value to a pointer, you are actually adding that number times the size of the data type referenced by the pointer.

T

(T/F) You can change the address that an array name points to.

null

A pointer that contains the address 0 is call a(n) ___ pointer.

Pointers

Array names can be used as ___, and vice versa.

Ampersand

The ___ operator can be used to determine a variable's address.

Indirection (*)

The ___ operator can be used to work with the variable a pointer points to.

new

The ___ operator is used to dynamically allocate memory.

null

Under older compilers, if the new operator cannot allocate the amount of memory requested, it returns ___.

delete

When a program is finished with a chunk of dynamically allocated memory, it should free it with the ___ operator.

new

You should only use pointers with delete that were previously used with ___.

Pointer

___ variables are designed to hold addresses.

Dynamic Memory Allocation

Creating variables while a program is running is called ___.

Address

Each byte in memory is assigned a unique ___.


Set pelajaran terkait

Nursing Health Alterations: Practice test

View Set

Gray's Anatomy Review Questions: Head and Neck

View Set

chapter 1: welcome to economics homework

View Set

Quadratic Transformations and Word Problems

View Set

Infection Control Chapters 25-28

View Set