+ 5
What's the difference between passing by pointer and passing by reference... And when to use which?
void myfunc (int* x) //passing by pointer void myfunc (int& x) //passing by reference
1 Resposta
void myfunc (int* x) //passing by pointer void myfunc (int& x) //passing by reference