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

Answers were Sorted based on User's Feedback



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

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

Answer / glibwaresoftsolutions

• 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 different bitween abap and abap-hr?

0 Answers   TCS,


int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

4 Answers   TCS,


How is pointer initialized in c?

0 Answers  


Is main() function predfined or userdefined?

11 Answers  


Is fortran faster than c?

0 Answers  


44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?

6 Answers   Amdocs,


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

0 Answers   HCL,


Why c is a procedural language?

0 Answers  


Differentiate between declaring a variable and defining a variable?

0 Answers  


what do you mean by inline function in C?

0 Answers   IBS, TCS,


#include<stdio.h> void main() { int =1; printf("%d%d%d",a++,++a,++a); }

3 Answers   VB,


what is the different between data structure and data type?

1 Answers   Ignou,


Categories