Which of the following are potential problems when we assign pointer variables:

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

a) inaccessible heap memory

If only one pointer points to allocated memory, and that pointer has is pointer value changed so that it points some place else, there is no way to access or deallocate (delete) that memory. That memory remains locked up for the life of the program.

Computer Science & Information Technology

You might also like to view...

Which of the following password types is often seen in peer-to-peer networks?

A. static B. combination C. cognitive D. graphical

Computer Science & Information Technology

Solve the equations with one variable for an explicit value (or values) of the unknown:

2p + 1p + ip= 2 2p + 1p + ip= 2

Computer Science & Information Technology