Computer Science, asked by jaydeepghevariya54, 7 months ago

a pointer that is pointing to NOTHING is called?​

Answers

Answered by aryankhandelwal018
3

Answer:

A pointer pointing to a memory location that has been deleted (or freed) is called dangling pointer

Explanation:

plz mark brainlist answer plz follow me plz plz plz plz plz

Answered by sourasghotekar123
0

Answer: NULL POINTER

Explanation:

At a very high level, we can think of NULL as a null pointer that is used for various purposes in C. Some of the most common uses of NULL are:

  • Initializing a pointer variable when no valid memory address has yet been assigned to that pointer variable.
  • Null pointer checks before accessing any pointer variable. This way, we can do error handling in pointer-related code
  • Pass a null pointer to the function argument when we don't want to pass any valid memory address.

In the context of a particular program, all uninitialized or dangling or NULL pointers are invalid, but NULL is a specific invalid pointer that is mentioned in the C standard and has specific purposes. We mean that uninitialized or dangling pointers are invalid, but can point to some memory address that can be accessed through unintended memory accesses.

#SPJ6

Similar questions