在程序运行过程中由编程人员根据需要申请和释放空间的存储区域是( )。
2023-09-01
A.代码区
B.静态数据区
C.栈区
D.堆区
参考答案:D
B.静态数据区
C.栈区
D.堆区
参考答案:D
本题考查程序语言基础知识。
内存空间在逻辑上可以划分为代码区和数据区两大部分,其中,数据区又可分为静态数据区、栈区和堆区。代码区存放指令,运行过程中不能修改。一般情况下,全局变量的存储单元位于静态数据区,局部变量的存储单元存放在栈区,根据需要动态申请和释放的动态变量的存储空间在堆区。
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_63.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_56.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_26.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_61.jpg)
热门标签