file in C | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren

file in C

what happen if I open a file and forget to close it? fopen(fp,ÔÇŁrÔÇŁ); but I don't write fclose(fp);

1st Jun 2019, 4:25 PM
SSyahrir - avatar
1 Antwort
Umm, not familiar with C, but in higher level languages, I think a read-mode file either just sits in the RAM uselessly until the program terminates, or the garbage collector gets it when it sees it isnÔÇÖt going to be used again.
13th Apr 2024, 4:34 PM
Wilbur Jaywright
Wilbur Jaywright - avatar