Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arguments passed by Value & Reference????
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00613697
Message ID:
00613728
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Here's the quick and simple: when you pass by value, a copy of "thing" is placed on the stack and used by the routine that is being called. If the called routine makes a change, it is changing the copy. The change will not be seen by the caller.

When passing by reference, a pointer to the "thing" is passed to the called routine. If the called routine makes a change, it is changing the actual value and will be visible to the caller.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform