C
Programming and Technical
Programming
Program
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;
}
Options
1) "A.C" "B.C" "C.C"
2) "B.C" "C.C"
3) "A.C"
4) Error in fclose()
Read Solution (Total 2)
-
- Answer: 4,
- 8 years agoHelpfull: Yes(0) No(0)
- ans is 4 why because fclose() not use more then one file. its closed in at a time one file only
- 6 years agoHelpfull: Yes(0) No(0)
C Other Question