+ 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

27th Jan 2018, 11:31 AM
Silver Key
Silver Key - avatar
1 Réponse