Recently, an expert from C ++ told me that:
void f(int &*r);
- a valid pass by reference example, although I thought it was some kind of pointer to a link that is illegal. As far as I know, the correct form for passing by reference is either a form of the following:
void f1(int *&r); void f2(int &r);
Can you explain the situation of the first example (function f)?
source share