Explain the difference between stack and heap in embedded systems.

Technical