I am learning C pointers and quite confused. I tried to search online but couldn't find any clear explanation. This is what I am trying to understand:
int x = 8;
int *ptr = &x;
int **dptr = ptr;
What does **dptr point to, x or *ptr? When I tried to print the content of dptr I found that it contains the address of x instead of *ptr but I am not sure why?
Edited
int x = 8;
int *p = &x;
int **ptr = &p;
int **dptr = ptr;