网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Local variables
释义

Local variables

原声例句
Custom Interactive Maps with Google Maps API (Full Course)

We wouldn't be able to just assign local variables to each one.

我们不能只将局部变量分配给每个变量。

Custom Interactive Maps with Google Maps API (Full Course)

Inside of the loop, we'll store the marker that we're iterating over into a local variable.

在循环内部,我们将迭代的标记存储到局部变量中。

中文百科

局部变量 Local variable

(重定向自Local variables)

在计算机科学中,局部变量是拥有局部作用域的变量。这样的变量只能由声明它的函数或块中访问。在仅有两层可见性的进程设计语言中,局部变量对应全局变量;另一方面,许多类ALGOL语言允许任意多层的嵌套函数,各自拥有私有变量、函数、常量和类型。

大多数进程设计语言中,局部变量是直接存储在调用堆栈上的自动变量。即递归函数调用自己时,局部变量的每一份实例都在不同的地址空间中。于是在当前作用域对变量的声明、写入、读取都不会在其被声明的函数外产生副作用。

英语百科

Local variable 局部变量

(重定向自Local variables)

In computer science, a local variable is a variable that is given local scope. Local variable references in the function or block in which it is declared override the same variable name in the larger scope. In programming languages with only two levels of visibility, local variables are contrasted with global variables. On the other hand, many ALGOL-derived languages allow any number of nested levels of visibility, with private variables, functions, constants and types hidden within them, either by nested blocks or nested functions. Local variables are fundamental to procedural programming, and more generally modular programming: variables of local scope are used to avoid issues with side-effects that can occur with global variables.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/20 21:22:30