Skip to content
EntityQ1896011· pop 15· linked from 118 articles

静态变量

Sign in to save

in computer languages, a variable that has been allocated statically so that its lifetime is the entire run of the program (as opposed to shorter-lived automatic variables and dynamically allocated variables)

Wikidata facts

Show 1 more fact
Sources (1)

via Wikidata · CC0

Article · 中文

静态变量(英語:Static Variable)在计算机编程领域指在程序执行前系统就为之(也即在运行时中不再改变分配情况)存储空间的一类变量。与之相对应的是在运行时只暂时存在的自动变量(即局部变量)与以动态分配方式获取存储空间的一些对象,其中自动变量的存储空间在调用栈上分配与释放。

Abstract from DBpedia / Wikipedia · CC BY-SA