Do you know the difference between exit() and _exit() function in c?



Do you know the difference between exit() and _exit() function in c?..

Answer / Parmatma Prasad

In C, exit() is a library function that terminates the current program immediately. On the other hand, _exit() is a system call that also terminates the current program but allows for some cleanup operations to be performed before termination.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

1 Answers  


Tell us two differences between new () and malloc ()?

1 Answers   Adobe,


main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

8 Answers   Vector,


What is the difference between pure virtual function and virtual function?

1 Answers  


What is an lvalue in c?

1 Answers  


Explain function pointer with exapmles.

2 Answers  


write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,


how can you print&scan anything using just one character? :) HINT: printf,scanf similer

2 Answers  


hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES

2 Answers   Wipro,


What does malloc () calloc () realloc () free () do?

1 Answers  


main() { float a=3.2e40; printf("%d",a); }

9 Answers   Satyam,


control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent

1 Answers  


Categories