C Pointers Question:

Download Job Interview Questions and Answers PDF

What is the difference between exit() and _exit() function?

C Pointers Interview Question
C Pointers Interview Question

Answer:

The following are the differences between exit() and _exit() functions:

- 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 Pointers Interview Questions And Answers PDF

Previous QuestionNext Question
What is the C Language function prototype?What are the advantages of using macro in C Language?