Pergunta de entrevista da empresa Jai Kalki Energy

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