What's the difference between passing by pointer and passing by reference... And when to use which? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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