Which of the given statement is true with respect to the function atexit()?
Answer: B
Correct answer: The atexit() function is used to return zero if the registration succeeds, nonzero if it fails
atexit() registers a function to be called when the program terminates normally, and returns zero on success. Registered functions run in the reverse order of registration, and at least 32 must be allowed. They are not called if the program ends through abort().
Please log in or register to report this question.