Pregunta de entrevista de Tata Consultancy Services

Difference between stack and heap