Stack Limit is different from Heap Memory and also you store the pointer to the heap in Stack and its not same memory.