What is a reference to a pointer
Pointer by reference to a constant int.It can be initialized any time after its declaration.It can be initialized to any value.A reference is a variable which refers to another variable.A reference variable may be taken into consideration as a regular pointer with automated indirection.For your ease you can understand that mainly 'i' stores address and '*' gives you value stored on 'i' location.
We can also achieve same thing using double pointers.You could also define a pointer to a pointer or double pointer.Once a reference is initialized to a variable, it cannot be changed to refer to another variable.Once a reference is initialized to a variable, it cannot be changed to refer to another variable.A pointer in c++ is a variable that holds the memory address of another variable.It can be changed to point to a different variable of the same type only.
We will be using go as the reference implementation for pointers.A pointer variable if preceeded by '*' returns the value of a variable whose address is stored in the pointer varaible.