Pergunta de entrevista da empresa HP Inc.

What is the difference between a stack and heap?