jeudi 16 avril 2020

How to keep the address stored in a pointer passed as an argument consistent across all function calls

I can pass any argument by reference and the changes to that variable in any of the function calls are reflected in other function calls too.

Likewise if I want to keep the address stored in a pointer consistent across all the function call such that it behaves like we are passing a pointer by reference.

Aucun commentaire:

Enregistrer un commentaire