Pergunta de entrevista da empresa AMD

What is the difference between the stack and the heap?