• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
May 12, 2022 |17.8K Views
Dangling, Void , Null and Wild Pointers
  Share   Like
Description
Discussion

A pointer pointing to a memory location that has been deleted (or freed) is called dangling pointer. There are three different ways where Pointer acts as dangling pointer

Void pointer is a specific pointer type – void * – a pointer that points to some data location in storage, which doesn’t have any specific type. Void refers to the type. Basically the type of data that it points to is can be any. If we assign address of char data type to void pointer it will become char Pointer, if int data type then int pointer and so on. Any pointer type is convertible to a void pointer hence it can point to any value.

Dangling, Void , Null and Wild Pointers: https://www.geeksforgeeks.org/dangling-void-null-wild-pointers/