Jai Kalki Energy Interview Question

What is the difference between stack and heap in embedded systems?