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)

C Other Question

What is the use of typedef? Out of fgets() and gets() which function is safe to use
and why?