I've written a simple void function that merely displays a string, and registered it with atexit().
This function is called regardless of whether I end main() with exit() or return().
Are these statements then identical when used in main()?
According to documentation, exit() closes all open files.
If exit() always executes, is there any point in explicitly closing files at the end of the program?