The basic understanding of stack and heap 7,1

Stack: value of the basic data types of storage or memory address

Heap: storage complex data types, so-called reference data types.

        When the reference data type stored in the stack when a generated address stored on the stack

Simple and crude, it is as long as new data is stored on the heap, as long as there is var opened up a space in the stack

 

Guess you like

Origin www.cnblogs.com/qdxbls/p/11117743.html