Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Passing by value?

Definition 3.2 University Computer Science — Year 1 · Capítulo 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.

Ler no capítulo →