GE HealthCare interview question

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