I was just wondering how exit worked? Does it use some lower-level language feature in its implementation? Is it compiler-specific? What is it? (I am talking about the function in stdlib.h btw)
Labdabeta 182 Posting Pro in Training Featured Poster
Recommended Answers
Jump to PostWhen you run a program, it creates a process for that program. So when you call exit within that process, the os kills that process and cleans up memory. As for its actual implementation, I do not know. It is most likely implementation specific, that is I don't think there …
All 4 Replies
mrnutty 761 Senior Poster
L7Sqr 227 Practically a Master Poster
DJSAN10 28 Posting Whiz in Training
Labdabeta 182 Posting Pro in Training Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.