Discussion :: Input / Output
-
Which files will get closed through the fclose() in the following program?
#include
int main() { FILE *fs, *ft, *fp; fp = fopen("A.C", "r"); fs = fopen("B.C", "r"); ft = fopen("C.C", "r"); fclose(fp, fs, ft); return 0; }
Answer : Option D
Explanation :
Extra parameter in call to fclose().
Be The First To Comment