from what I know, if we use pointer or reference as a function parameter, it could written like this: for reference:
void myfunction(int& x);
void myfunction(int *x);
but I recently see people written like this:
void myfunction(int &x);
I think it is still a reference, but if in general &x means getting the address of x, right? So, I am confused. Please help.