Siemens interview question

Difference between stack and heap (C++)