Pergunta de entrevista da empresa Laserfiche

What is the difference between stack and heap?