Skip to main content

Posts

Showing posts with the label Pointer to Pointer

Pointer To Pointer in C Program #DOTC_Mdb

Pointer to Pointer in C. Hello Everyone, In Previous blog we discussed about pointers in C. Today we will discuss about Pointer to Pointer in C. Before starting this topic please go through my previous blog as below for your reference. https://dheeraj60.blogspot.com/2020/06/basic-concept-of-pointer-in-c-and-its.html   Let’s Start with Pointers to Pointer As we know now pointer is basically used to find the address of variable. When a pointer holds the address of another pointer then such type of pointer is known as pointer-to-pointer. When we define a pointer to a pointer, the first pointer contains the address of the second pointer, which points to the location that contains the actual value. Syntax for Declaring Pointer to Pointer **p; In Pointer we use to take 1 *, but in pointer to pointer we need to take 2 * to get the address of second pointer and the location that contains the actual value.   Let’s take 1 simple example to understand Pointer to Pointer Program.   #i