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



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

Answer / nashiinformaticssolutions

• exit(): Cleans up resources (e.g., flushes buffers).
• _exit(): Terminates the program immediately without cleanup.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

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

0 Answers  


Go through this linked list concept.While traversing through the singly linked list sometimes the following code snippet "while(head != NULL)" is used and other times "while(head->link != NULL)"is used(Here head is the pointer pointing to the first node,node has two parts data part and link part).What is the difference between head != NULL and Head->link != NULL and in which situation are they used?

1 Answers   Oracle,


What is a program?

0 Answers  


main() { int i; printf("%d",i^i); }

1 Answers  


What is d'n in c?

0 Answers  






Why do we need arrays in c?

0 Answers  


What are the different types of pointers?

4 Answers   HCL, TCS,


int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }

2 Answers  


Which is better oop or procedural?

0 Answers  


Combinations of fibanocci prime series

0 Answers  


How do you list a file’s date and time?

0 Answers  


pgm to find middle element of linklist(in efficent manner)

4 Answers   Huawei,


Categories