C Functions Question:

Download Job Interview Questions and Answers PDF

Can you please explain the difference between exit() and _exit() function?

C Functions Interview Question
C Functions Interview Question

Answer:

► Io buffers are flushed by exit() and executes some functions those are registered by atexit().
► _exit() ends the process without invoking the functions which are registered by atexit().

Download C Functions Interview Questions And Answers PDF

Previous QuestionNext Question
What is _exit() function?Explain bitwise shift operators?