Pointer to Pointer in C Programming
Declaration :
Declaration :
int **ptr2ptr ; // Double Pointer
Consider the Following Example :
int n = 45 , *ptr , **ptr2ptr ; ptr = &n; ptr2ptr = &ptr;
What is Pointer to Pointer ?
- Double (**) is used to denote the double Pointer
- Pointer Stores the address of the Variable
- Double Pointer Stores the address of the Pointer Variable
Statement | What will be the Output ? |
*ptr | 45 |
**ptr2ptr | 45 |
ptr | &n |
ptr2ptr | &ptr |
Notes :
- Conceptually we can have Triple ..... n pointers
- Example : *****n,****b can be another example
Pointer Home

0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email