3

Dangling, Void , Null and Wild Pointers

 1 year ago
source link: https://www.geeksforgeeks.org/videos/dangling-void-null-and-wild-pointers/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Dangling, Void , Null and Wild Pointers

Dangling, Void , Null and Wild Pointers
Hello friends. Today in this video, we will discuss about
  • 10 Views
  • 12/05/2022

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/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK