fopen(): Get file streams automatically closed when a program ends?

If I have opened a file with fopen(), need I then close the file before the program exits, or will it automatically get closed?
Last edited on
After a further search (previously I found nothing about that topic) I found this on stackoverflow:
https://stackoverflow.com/questions/8175827/what-happens-if-i-dont-call-fclose-in-a-c-program

So yes, by normal program exit all files get automatically closed.
Topic archived. No new replies allowed.