Domanda di colloquio di GE HealthCare

How c language manages memory? What is the difference between heap and stack?