全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Local variable?

Definition 19.4 Primary & Middle School Computer Science · 第 19 章 — Functions

A local variable is a variable created inside a function: a parameter, or a name assigned in the body. It exists only while the call runs, and the rest of the program cannot see it.

Local boxes appear when the call starts and disappear when it returns. Only the return value, 12, survives.
Local boxes appear when the call starts and disappear when it returns. Only the return value, 12, survives.
在原文中阅读 →