全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Passing by value?

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

在原文中阅读 →