what is the difference between exit() and _exit() functions?

Answers were Sorted based on User's Feedback



what is the difference between exit() and _exit() functions?..

Answer / vin

The exit() and _exit() both are the same except that the
exit() perform flushing of I/O buffer before terminating
while _exit() does not perform.

Is This Answer Correct ?    6 Yes 1 No

what is the difference between exit() and _exit() functions?..

Answer / bajishareef

exit() perform the termination operation, but before that it closes all files and flushes the I/O buffers.
_exit() just terminates the program

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

2 Answers  


explain about storage of union elements.

2 Answers   ABC, Bosch,


write a program of palindrome(madam=madam) using pointer?

5 Answers   L&T,


wats the diference btwen constant pointer and pointer to a constant.pls give examples.

9 Answers  


20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????

2 Answers  






Why c is called object oriented language?

0 Answers  


what is the importance of spanning tree?

0 Answers  


What are the storage classes in C?

0 Answers  


How can I read and write comma-delimited text?

0 Answers  


How can you return multiple values from a function?

0 Answers  


C program to find frequency of each character in a text file?

6 Answers  


Why void is used in c?

0 Answers  


Categories