Originally Posted by C17 Clause 5.1.2.2.3 Paragraph 1Yes. You make it clear that these files were open and hence should be closed, which then avoids leaving them open unnecessarily should more code be later added to the program.Originally Posted by Algonon
Of course, if this is a trivial one-off program, then there's no point, but such programs when written by experienced programmers can freely break all the rules of good practice as they deem fit.