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; } - Study24x7
Social learning Network
28 Feb 2023 10:22 AM study24x7 study24x7

Which files will get closed through the fclose() in the following program?#include<stdio.h> 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()

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles