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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way to store flag values in a program?

583


Explain the use of #pragma exit?

703


What is structure padding in c?

632


How do shell structures work?

578


Differentiate Source Codes from Object Codes

829






What is structure in c definition?

579


What is a pointer variable in c language?

649


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

651


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1432


Explain how can I right-justify a string?

631


What does double pointer mean in c?

584


How can I get the current date or time of day in a c program?

656


How do you use a pointer to a function?

642


Explain what is page thrashing?

617


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

592