In general, STACK grows top down. But HEAP grows bottom up.
In general, STACK grows top down. But HEAP grows bottom up.
STACK is used for return address of function call. But HEAP is not used for that purpose.
STACK is used for small amount of variables. But HEAP may be used for big amount of data.
Of course, they have different names. |
|