Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Passing by value » ?

Definition 3.2 University Computer Science — Year 1 · Chapitre 3 — Functions and the Call Stack

C passes every argument by value: at a call, each argument expression is evaluated and its value is copied into the corresponding parameter, which is a new variable of the called function. An assignment to a parameter changes the copy, never the caller’s variable.

Lire dans le chapitre →