Pregunta de entrevista de Aselsan

Explain the difference between stack and heap allocation?