Typically, you can read the declaration of the variable from right to left. Therefore in the case of int *ptr;
, it means that you have a Pointer *
to an Integer variable int
. Also when it's declared int **ptr2;
, it is a Pointer variable *
to a Pointer variable *
pointing to an Integer variable int
, which is the same as "(int *)* ptr2;"
Now, following the syntax by declaring int*& rPtr;
, we say it's a Reference &
to a Pointer *
that points to a variable of type int
. Finally, you can apply again this approach also for int**& rPtr2;
concluding that it signifies a Reference &
to a Pointer *
to a Pointer *
to an Integer int
.