What are the differences between these two function declarations? I realized there is a difference between call by value and call by reference to a pointer.
void foo(int* p); // Call by value to pointer
void func(int*& p); // Call by reference to pointer
also is there any difference between r-value to l-value binding or something like that.
Aucun commentaire:
Enregistrer un commentaire