what is the difference btw a pointer and a reference in C++?
int *ptr;
int &ptr;

correct me if i am wrong, both of them hold the address of an interger variable when assigned to them and they can be used as aliases . Are the just different implementations or is the a difference btween the two ?

Thanks in advance