Question: 3 4 Choose a correct statement about C file operation program given below! 1 int main() 2 FILE *fp; charch; fp=fopen('final.txt, ); while((ch=fgetc(fp)) != EOF)

 3 4 Choose a correct statement about C file operation program

3 4 Choose a correct statement about C file operation program given below! 1 int main() 2 FILE *fp; charch; fp=fopen('final.txt", "); while((ch=fgetc(fp)) != EOF) { printf("%c"ch); } 10 return 0; 5 6 7 8 9 O A Line 5, if the file final.txt does not exist an error message will be displayed. O B. Line 5, if the file final.txt is not found, it will be created on disk. O C. Line 6, EOF is checked for end of file, then the while loop exit. compilation are due to missine fclose statement OI rch

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!