static及extern声明的变量通常存放在静态存储区(static storage area);auto、形参通常放在动态存储区,其中大多数放在栈(stack)中,malloc或new的变量放在堆(heap)中。
基于38个网页-相关网页
program static storage area 程序静态存储区
static storage area
静态存储区
以上为机器翻译结果,长、整句建议使用 人工翻译 。
Storage can be allocated before the program begins, in the static storage area.
静态存储区域的生存期与程序的生存期同。
youdao
应用推荐
模块上移
模块下移
不移动