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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

588


please send me the code for multiplying sparse matrix using c

1728


Explain how do you print only part of a string?

650


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2685


How do I determine whether a character is numeric, alphabetic, and so on?

623






any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

661


What is the use of function overloading in C?

680


in iso what are the common technological language?

1638


Why header file is used in c?

577


How can I trap or ignore keyboard interrupts like control-c?

620


What will be your course of action for a push operation?

669


Explain what is the difference between the expression '++a' and 'a++'?

627


What does the error message "DGROUP exceeds 64K" mean?

728


Why is c still so popular?

618


Explain the use of #pragma exit?

699