A linked list is

a) inaccessible heap memory
b) dangling pointers
c) uninitialized pointers
d) NULL pointers


b) dangling pointers

A dangling pointer occurs when several pointers point to the same allocated memory, and one of the pointers has the delete operator applied to it. The memory is still there, but it now belongs to the free store manager. The remaining pointers point to deleted memory and are called are dangling. It is common to speak of the deleted pointer as dangling as well, but it might or might not still be pointing at the deleted memory. It is at best an error to delete a pointer that points to already deleted free store memory, and at worst a disaster.

Computer Science & Information Technology

You might also like to view...

Which of the following will compile a program called ReadIt?

a. java ReadIt.java b. java ReadIt.javac c. javac ReadIt.java d. javac ReadIt.javac

Computer Science & Information Technology

Use a sentinel-controlled loop to read 10 positive numbers. Compute and display their sum.

Note: This program terminates when a negative number is input. The problem state- ment should state that only positive numbers should be input.

Computer Science & Information Technology

The delay time when downloading interactive video or gaming via satellite is called lagging

Indicate whether the statement is true or false

Computer Science & Information Technology

Click the Insert Tab to add a button to the Quick Access Toolbar

Indicate whether the statement is true or false

Computer Science & Information Technology