Machine-translated by Google. Questions are authored in English.
Top

Discussion

Consider the case that a record is read by another, which is moved or deleted and it contains a pointer, then that pointer is called as :

  • A.Unlinked pointer
  • B.Dynamic pointer
  • C.Dangling pointer
  • D.Pointer to pointer

Answer: C

Such a pointer is called a dangling pointer.

If a record holding a pointer to another record keeps that pointer after the target has been moved or deleted, the pointer now refers to a location that no longer holds the intended record. That is a dangling pointer, and following it gives wrong data or an error. Database systems avoid it with tombstones or indirection through record identifiers.

A dynamic pointer is just one allocated at run time, a pointer to pointer holds the address of another pointer, and 'unlinked pointer' is not a standard term.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.