s*******r 发帖数: 197 | 1 data segment-->global and static variable
stack-->local variable
heap-->dynamic variable | S****X 发帖数: 507 | 2 not only store function local auto variables, also store function parameters, some registers' value when change execution routine, function return value especially in recursive scenario and ect, please make up.
Only for reference, please correct is i am wrong in some point | a******2 发帖数: 393 | 3 地址不同,增长方向不同
【在 s*******r 的大作中提到】![](/moin_static193/solenoid/img/up.png) : data segment-->global and static variable : stack-->local variable : heap-->dynamic variable
| S****X 发帖数: 507 | 4 Yelp, good point, once I answered in this way on the phone, the guy on the
side got very confused, it looks like the answer to sun kind application
development engineer is: stack auto created and auto cleaned-up and heap is
done manually by application, -:)
【在 a******2 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 地址不同,增长方向不同
|
|