Is stack address shared by Heap addresses ??

Posted by numerical25 on Stack Overflow See other posts from Stack Overflow or by numerical25
Published on 2010-06-18T15:14:21Z Indexed on 2010/06/18 15:23 UTC
Read the original article Hit count: 158

Filed under:
|
|
|

I read On most operating systems, the addresses in memory starts from highest to lowest. So I am wondering if the heap, stack, and global memory all fall under the same ordering..?

If I created...

pointerType* pointer = new pointerType  //creates memory address 0xffffff

And then created a local varible on the stack

localObject object

would localObjects address be 0xfffffe

Or is heap and stack ordering completely different.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c