Pergunta de entrevista da empresa BairesDev

What is the difference between heap and stack?