Pergunta de entrevista da empresa Rockwell Automation

Difference between stack & heap memory