Why Programs Use Stack, Heap, And Other Memory Segments