Difference between exit() and _exit() function

Explain the difference between exit() and _exit() function.

exit() does cleanup work like closing file descriptor, file stream and so on, while _exit() does not.

The following are the differences between exit() and _exit() functions:

- io buffers are flushed by exit() and executes some functions those are registered by atexit().

- _exit() ends the process without invoking the functions which are registered by atexit().
Compare array with pointer
The first declaration allocates memory for a pointer; the second allocates memory for 20 characters.....
What is NULL pointer?
A null pointer does not point to any object. NULL and 0 are interchangeable in pointer contexts.Usage of NULL should be considered a gentle reminder that a pointer....
Difference between Function to pointer and pointer to function
A pointer to a function is a pointer that points to a function. A function pointer is a pointer that either has an indeterminate value, or has a null pointer value, or points to a function
Post your comment