Aselsan Interview Question

Explain the difference between stack and heap allocation?