Input / Output

Which files will get closed through the fclose() in the following program?

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;

A "A.C" "B.C" "C.C"

B "B.C" "C.C"

C "A.C"

D Error in fclose()

ANS:A - "A.C" "B.C" "C.C"

Extra parameter in call to fclose().

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.