i didn't understand something about stack in functions for variables,if a process is given a heap isn't the stack inside that heap or when people compare heap and stack they mean instead heap a heap block that created from allocation?.And when a pointer in function pointing to allocated structure what does it mean in this situation?
Asked
Active
Viewed 56 times
0
-
1The stack is not inside the heap. At least not in Windows or Linux. – John Dibling Jul 10 '13 at 20:44
-
@JohnDibling can you explain? – user1779374 Jul 10 '13 at 20:46
-
@user1779374: Each process has global memory, thread local memory, executable memory, one or more heaps, one or more stacks, and probably other stuff. They're all seperate. – Mooing Duck Jul 10 '13 at 21:01