由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - What is automatic space allocation in C++?
相关主题
请教一个C++问题内存分配问题
map析构a small question about c++ memory allocation
effective C++里的memory pool 一问:请教关于allocator member function 的问题
why do we still use dynamic allocation?在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)
vector的析构问题关于C/C++里的Static variable的memory allocation/initializa
关于内存泄漏什么是OS Memory management and heap structure?
C++一个string的小问题Three C/C++ Programming Questions
C++ Interview QuestionAny possibility to make this expression faster?
相关话题的讨论汇总
话题: what话题: allocation话题: c++话题: space话题: automatic
进入Programming版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
Is it like the following?
int i, a[100];
I know it is a stupid question. But please give an answer.
Thanks a ton.
k**f
发帖数: 372
2
Your question is not clear.
You may want to explain what is "automatic space allocation", probably using
the example of another language.
In your code snippet
int i, a[100];
the compiler will allocation space on the stack for an integer i, and space
for integer array a of 100 integers.
1 (共1页)
进入Programming版参与讨论
相关主题
Any possibility to make this expression faster?vector的析构问题
从今天开始起,学C++!关于内存泄漏
葵花宝典之四大神功C++一个string的小问题
老板嫌我C++太差!请推荐。C++ Interview Question
请教一个C++问题内存分配问题
map析构a small question about c++ memory allocation
effective C++里的memory pool 一问:请教关于allocator member function 的问题
why do we still use dynamic allocation?在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)
相关话题的讨论汇总
话题: what话题: allocation话题: c++话题: space话题: automatic