Pergunta de entrevista da empresa Garmin

What is the difference between stack and heap memory?