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