Intel Corporation Interview Question

What is each segment of memory used for in a program? (Stack, Heap, data, code)